Wed, 20 Mar 2019 18:25:49 -0500
Use full path for gKK doc
616
6c094ff1cb87
move ~/bin into zshenv
Meredith Howard <mhoward@roomag.org>
parents:
615
diff
changeset
|
1 | typeset -U omz_plugins zsh_plugins envthings |
272
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
2 | |
241 | 3 | # Version/environment management tools to load |
515
199b08808ed5
using asdf instead of rb/ndenv now
Meredith Howard <mhoward@roomag.org>
parents:
511
diff
changeset
|
4 | envthings=(plenv 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 | 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/colored-man-pages |
706
d61b23bfb605
try zsh vi mode with an indicator
Meredith Howard <mhoward@roomag.org>
parents:
616
diff
changeset
|
14 | plugins/vi-mode |
243
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 | |
272
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
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 | |
272
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
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 | |
706
d61b23bfb605
try zsh vi mode with an indicator
Meredith Howard <mhoward@roomag.org>
parents:
616
diff
changeset
|
38 | KEYTIMEOUT=1 |
244 | 39 | REPORTTIME=5 |
40 | ||
41 | setopt list_packed | |
42 | setopt correct | |
43 | setopt hist_reduce_blanks | |
44 | setopt hist_save_no_dups | |
331
ac7f662c1db5
add interactive_comments
Meredith Howard <mhoward@roomag.org>
parents:
272
diff
changeset
|
45 | setopt interactive_comments |
244 | 46 | |
47 | export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help" | |
48 | ||
706
d61b23bfb605
try zsh vi mode with an indicator
Meredith Howard <mhoward@roomag.org>
parents:
616
diff
changeset
|
49 | bindkey '\eOA' up-line-or-beginning-search |
d61b23bfb605
try zsh vi mode with an indicator
Meredith Howard <mhoward@roomag.org>
parents:
616
diff
changeset
|
50 | bindkey '\eOB' down-line-or-beginning-search |
469 | 51 | |
174
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
169
diff
changeset
|
52 | source ~/.profile.common |
94
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
53 | |
272
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
54 | for envthing in $envthings; do |
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
55 | if [ -d ~/.$envthing ]; then |
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
56 | path[1,0]="$HOME/.$envthing/bin" |
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
57 | eval "$($envthing init - zsh)" |
195
390c49ee432d
DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents:
174
diff
changeset
|
58 | fi |
390c49ee432d
DRY up my *env plugins
Meredith Howard <mhoward@roomag.org>
parents:
174
diff
changeset
|
59 | done |
94
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
60 | |
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
61 | if [ -f ~/.zshrc.local ]; then |
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
62 | source ~/.zshrc.local |
51ca19919894
Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
63 | fi |
272
f7fd81cbdb0c
clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents:
265
diff
changeset
|
64 |