Tue, 16 Feb 2016 20:37:06 -0500
use bundler for my fave gems
241 | 1 | # Version/environment management tools to load |
2 | envthings=(plenv rbenv ndenv) | |
94
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | |
242 | 4 | DISABLE_AUTO_UPDATE="true" |
241 | 5 | # DISABLE_AUTO_TITLE="true" |
6 | COMPLETION_WAITING_DOTS="true" | |
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 | 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 | 26 | if [ -f ~/.zgen/zgen.zsh ]; then |
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 | 29 | if ! zgen saved; then |
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 | 34 | zgen save |
35 | fi | |
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 | 41 | REPORTTIME=5 |
42 | ||
43 | setopt list_packed | |
44 | setopt correct | |
45 | setopt hist_reduce_blanks | |
46 | setopt hist_save_no_dups | |
47 | ||
48 | export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" | |
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 |