.zshrc

changeset 272
f7fd81cbdb0c
parent 265
d61dda282847
child 331
ac7f662c1db5
equal deleted inserted replaced
271:12a4bd3cc388 272:f7fd81cbdb0c
1 typeset -U path omz_plugins zsh_plugins envthings
2
1 # Version/environment management tools to load 3 # Version/environment management tools to load
2 envthings=(plenv rbenv ndenv rakudobrew) 4 envthings=(plenv rbenv ndenv rakudobrew)
3 5
4 DISABLE_AUTO_UPDATE="true" 6 DISABLE_AUTO_UPDATE="true"
5 # DISABLE_AUTO_TITLE="true" 7 # DISABLE_AUTO_TITLE="true"
6 COMPLETION_WAITING_DOTS="true" 8 COMPLETION_WAITING_DOTS="true"
7 DISABLE_UNTRACKED_FILES_DIRTY="true" 9 DISABLE_UNTRACKED_FILES_DIRTY="true"
8 10
9 typeset -U path omz_plugins zsh_plugins
10 11
11 omz_plugins=( 12 omz_plugins=(
12 plugins/common-aliases 13 plugins/common-aliases
13 plugins/gitfast 14 plugins/gitfast
14 plugins/colored-man-pages 15 plugins/colored-man-pages
26 if [ -f ~/.zgen/zgen.zsh ]; then 27 if [ -f ~/.zgen/zgen.zsh ]; then
27 source ~/.zgen/zgen.zsh 28 source ~/.zgen/zgen.zsh
28 29
29 if ! zgen saved; then 30 if ! zgen saved; then
30 zgen oh-my-zsh 31 zgen oh-my-zsh
31 for plugin in $omz_plugins[@]; do zgen oh-my-zsh $plugin; done 32 for plugin in $omz_plugins; do zgen oh-my-zsh $plugin; done
32 33
33 for plugin in $zsh_plugins[@]; do zgen load $plugin; done 34 for plugin in $zsh_plugins; do zgen load $plugin; done
34 zgen save 35 zgen save
35 fi 36 fi
36 fi 37 fi
37 38
38 # User configuration 39
39 path=("$HOME/bin" "$path[@]") 40 path[1,0]="$HOME/bin"
40 41
41 REPORTTIME=5 42 REPORTTIME=5
42 43
43 setopt list_packed 44 setopt list_packed
44 setopt correct 45 setopt correct
47 48
48 export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" 49 export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
49 50
50 source ~/.profile.common 51 source ~/.profile.common
51 52
52 for ENVTHING in $envthings; do 53 for envthing in $envthings; do
53 if [ -d ~/.$ENVTHING ]; then 54 if [ -d ~/.$envthing ]; then
54 path=( ~/.$ENVTHING/bin "$path[@]" ) 55 path[1,0]="$HOME/.$envthing/bin"
55 eval "$($ENVTHING init - zsh)" 56 eval "$($envthing init - zsh)"
56 fi 57 fi
57 done 58 done
58 59
59 if [ -f ~/.zshrc.local ]; then 60 if [ -f ~/.zshrc.local ]; then
60 source ~/.zshrc.local 61 source ~/.zshrc.local
61 fi 62 fi
63

mercurial