.zshrc

Mon, 07 Mar 2016 16:35:34 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 07 Mar 2016 16:35:34 -0500
changeset 265
d61dda282847
parent 244
721455edd12b
child 272
f7fd81cbdb0c
permissions
-rw-r--r--

support rakudobrew

241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
1 # Version/environment management tools to load
265
d61dda282847 support rakudobrew
Meredith Howard <mhoward@roomag.org>
parents: 244
diff changeset
2 envthings=(plenv rbenv ndenv rakudobrew)
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
242
8724c8ed6150 zgen fixes
Meredith Howard <mhoward@roomag.org>
parents: 241
diff changeset
4 DISABLE_AUTO_UPDATE="true"
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
5 # DISABLE_AUTO_TITLE="true"
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
6 COMPLETION_WAITING_DOTS="true"
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
7 DISABLE_UNTRACKED_FILES_DIRTY="true"
138
c033679345bd Update prompt is annoying
Meredith Howard <mhoward@roomag.org>
parents: 101
diff changeset
8
243
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
9 typeset -U path omz_plugins zsh_plugins
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
10
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
11 omz_plugins=(
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
12 plugins/common-aliases
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
13 plugins/gitfast
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
14 plugins/colored-man-pages
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
15 )
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
16
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
17 zsh_plugins=(
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
18 zsh-users/zsh-syntax-highlighting
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
19 ~/.oh-my-zsh.cust/themes/mhoward
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
20 )
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
95
6c1ea6e90a23 zsh startup fixes
Meredith Howard <mhoward@roomag.org>
parents: 94
diff changeset
22 if [ -f ~/.zshrc.local-pre ]; then
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
23 source ~/.zshrc.local-pre
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24 fi
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
25
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
26 if [ -f ~/.zgen/zgen.zsh ]; then
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
27 source ~/.zgen/zgen.zsh
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
29 if ! zgen saved; then
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
30 zgen oh-my-zsh
243
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
31 for plugin in $omz_plugins[@]; do zgen oh-my-zsh $plugin; done
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
32
243
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
33 for plugin in $zsh_plugins[@]; do zgen load $plugin; done
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
34 zgen save
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
35 fi
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
36 fi
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
37
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
38 # User configuration
243
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
39 path=("$HOME/bin" "$path[@]")
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
40
244
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
41 REPORTTIME=5
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
42
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
43 setopt list_packed
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
44 setopt correct
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
45 setopt hist_reduce_blanks
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
46 setopt hist_save_no_dups
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
47
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
48 export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
49
174
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents: 169
diff changeset
50 source ~/.profile.common
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
51
195
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
52 for ENVTHING in $envthings; do
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
53 if [ -d ~/.$ENVTHING ]; then
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
54 path=( ~/.$ENVTHING/bin "$path[@]" )
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
55 eval "$($ENVTHING init - zsh)"
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
56 fi
390c49ee432d DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
57 done
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
58
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
59 if [ -f ~/.zshrc.local ]; then
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
60 source ~/.zshrc.local
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
61 fi

mercurial