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