.zshrc

changeset 195
390c49ee432d
parent 174
d94a247836c8
child 223
521938eac8fe
equal deleted inserted replaced
194:39bb7938cf9f 195:390c49ee432d
6 6
7 DISABLE_AUTO_UPDATE="true" 7 DISABLE_AUTO_UPDATE="true"
8 # DISABLE_UPDATE_PROMPT="true" 8 # DISABLE_UPDATE_PROMPT="true"
9 9
10 plugins=( common-aliases gitfast ) 10 plugins=( common-aliases gitfast )
11 envthings=( plenv rbenv ndenv )
11 12
12 if [ -f ~/.zshrc.local-pre ]; then 13 if [ -f ~/.zshrc.local-pre ]; then
13 source ~/.zshrc.local-pre 14 source ~/.zshrc.local-pre
14 fi 15 fi
15 16
37 38
38 source ~/.profile.common 39 source ~/.profile.common
39 40
40 typeset -U path 41 typeset -U path
41 42
42 if [ -d ~/.plenv ]; then 43 for ENVTHING in $envthings; do
43 path=( ~/.plenv/bin "$path[@]" ) 44 if [ -d ~/.$ENVTHING ]; then
44 eval "$(plenv init - zsh)" 45 path=( ~/.$ENVTHING/bin "$path[@]" )
45 fi 46 eval "$($ENVTHING init - zsh)"
46 47 fi
47 if [ -d ~/.rbenv ]; then 48 done
48 path=( ~/.rbenv/bin "$path[@]" )
49 eval "$(rbenv init - zsh)"
50 fi
51 49
52 if [ -f ~/.zshrc.local ]; then 50 if [ -f ~/.zshrc.local ]; then
53 source ~/.zshrc.local 51 source ~/.zshrc.local
54 fi 52 fi
55 53

mercurial