-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzprofile
45 lines (32 loc) · 1.35 KB
/
zprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[[ ! -d "$tmp" ]] && export tmp="/tmp/$USER"
mkdir -p -m 700 "$tmp"
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CACHE_HOME=$HOME/.cache
export EDITOR=vi
[[ -s $(which vim) ]] && export EDITOR=vim
[[ -s $(which nvim) ]] && export EDITOR=nvim
# [[ -s $(which hx) ]] && export EDITOR=hx
# Reduce delay after you hit the <ESC> to 0.2 seconds (hat tip Doug Black)
export KEYTIMEOUT=20
export HISTFILE=~/.zsh_history
export HISTSIZE=10000
export SAVEHIST=10000
export PATH=$PATH:/usr/local/sbin
export PATH=$PATH:~/.bin
# eval "$(pyenv init -)" # Load pyenv
# Adds Node module (LiveScript, Jasmin) binaries into path
# [[ -s "$HOME/node_modules" ]] && export PATH=$PATH:$HOME/node_modules/.bin:$HOME/node_modules/bin
# Adds Go
[[ -s "$HOME/go/bin" ]] && export PATH=$PATH:$HOME/go/bin
export YSU_MESSAGE_FORMAT="\e[33mUse %alias_type for %command: %alias\e[0m"
if [[ "$OSTYPE" != "darwin"* ]]; then
export MOZ_ENABLE_WAYLAND=1
export SDL_VIDEODRIVER=wayland
fi
# Start sway or X11 depending on tty
[[ $(tty) = '/dev/tty1' ]] && startx
# [[ $(tty) = '/dev/tty2' ]] && export XDG_CURRENT_DESKTOP=sway && sway
eval "$(/opt/homebrew/bin/brew shellenv)"
# [[ -s $(which keychain) ]] && eval $(keychain --eval --agents ssh,gpg --quiet ~/.ssh/id_*[^pub])
[[ "$SSH_AUTH_SOCK" = "" ]] && [[ -s $(which ssh-agent) ]] && eval $(ssh-agent)