.zshrc

Wed, 22 Feb 2023 12:40:24 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 Feb 2023 12:40:24 -0600
changeset 1041
99ab96c49f65
parent 1001
0597cb8f2d07
child 1051
5c69bfa6dc3c
permissions
-rw-r--r--

add goneovim settings

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
242
8724c8ed6150 zgen fixes
Meredith Howard <mhoward@roomag.org>
parents: 241
diff changeset
3 DISABLE_AUTO_UPDATE="true"
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
4 # DISABLE_AUTO_TITLE="true"
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
5 COMPLETION_WAITING_DOTS="true"
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
6 DISABLE_UNTRACKED_FILES_DIRTY="true"
950
7980dce66a7a Fix up zsh vi mode
Meredith Howard <mhoward@roomag.org>
parents: 835
diff changeset
7 VI_MODE_SET_CURSOR="true"
7980dce66a7a Fix up zsh vi mode
Meredith Howard <mhoward@roomag.org>
parents: 835
diff changeset
8 VI_MODE_RESET_PROMPT_ON_MODE_CHANGE="true"
138
c033679345bd Update prompt is annoying
Meredith Howard <mhoward@roomag.org>
parents: 101
diff changeset
9
243
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
10 omz_plugins=(
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
11 plugins/colored-man-pages
706
d61b23bfb605 try zsh vi mode with an indicator
Meredith Howard <mhoward@roomag.org>
parents: 616
diff changeset
12 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
13 )
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
14
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
15 zsh_plugins=(
9315299c4adc build plugin lists so local zshrc can mess with them before loading
Meredith Howard <mhoward@roomag.org>
parents: 242
diff changeset
16 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
17 ~/.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
18 )
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19
95
6c1ea6e90a23 zsh startup fixes
Meredith Howard <mhoward@roomag.org>
parents: 94
diff changeset
20 if [ -f ~/.zshrc.local-pre ]; then
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21 source ~/.zshrc.local-pre
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
22 fi
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
23
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
24 if [ -f ~/.zgen/zgen.zsh ]; then
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
25 source ~/.zgen/zgen.zsh
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
26
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
27 if ! zgen saved; then
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
28 zgen oh-my-zsh
272
f7fd81cbdb0c clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents: 265
diff changeset
29 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
30
272
f7fd81cbdb0c clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents: 265
diff changeset
31 for plugin in $zsh_plugins; do zgen load $plugin; done
241
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
32 zgen save
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
33 fi
599f0e8cfb32 switch to zgen
Meredith Howard <mhoward@roomag.org>
parents: 223
diff changeset
34 fi
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35
950
7980dce66a7a Fix up zsh vi mode
Meredith Howard <mhoward@roomag.org>
parents: 835
diff changeset
36 KEYTIMEOUT=25
244
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
37 REPORTTIME=5
835
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 808
diff changeset
38 HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
244
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
39
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
40 setopt list_packed
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
41 setopt correct
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
42 setopt hist_reduce_blanks
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
43 setopt hist_save_no_dups
331
ac7f662c1db5 add interactive_comments
Meredith Howard <mhoward@roomag.org>
parents: 272
diff changeset
44 setopt interactive_comments
244
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
45
835
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 808
diff changeset
46 # Make zsh know about hosts already accessed by SSH
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 808
diff changeset
47 zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
244
721455edd12b Add some zsh options
Meredith Howard <mhoward@roomag.org>
parents: 243
diff changeset
48
807
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
49 # Altered from what's shown on Arch wiki
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
50 [[ -n "${terminfo[khome]}" ]] && bindkey -- "${terminfo[khome]}" beginning-of-line
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
51 [[ -n "${terminfo[kend]}" ]] && bindkey -- "${terminfo[kend]}" end-of-line
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
52 [[ -n "${terminfo[kich1]}" ]] && bindkey -- "${terminfo[kich1]}" overwrite-mode
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
53 [[ -n "${terminfo[kbs]}" ]] && bindkey -- "${terminfo[kbs]}" backward-delete-char
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
54 [[ -n "${terminfo[kdch1]}" ]] && bindkey -- "${terminfo[kdch1]}" delete-char
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
55 [[ -n "${terminfo[kcuu1]}" ]] && bindkey -- "${terminfo[kcuu1]}" up-line-or-beginning-search
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
56 [[ -n "${terminfo[kcud1]}" ]] && bindkey -- "${terminfo[kcud1]}" down-line-or-beginning-search
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
57 [[ -n "${terminfo[kcub1]}" ]] && bindkey -- "${terminfo[kcub1]}" backward-char
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
58 [[ -n "${terminfo[kcuf1]}" ]] && bindkey -- "${terminfo[kcuf1]}" forward-char
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
59 [[ -n "${terminfo[kpp]}" ]] && bindkey -- "${terminfo[kpp]}" beginning-of-buffer-or-history
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
60 [[ -n "${terminfo[knp]}" ]] && bindkey -- "${terminfo[knp]}" end-of-buffer-or-history
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
61 [[ -n "${terminfo[kcbt]}" ]] && bindkey -- "${terminfo[kcbt]}" reverse-menu-complete
afc9c88b4897 fix all vi mode special bindings
Meredith Howard <mhoward@roomag.org>
parents: 706
diff changeset
62
174
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents: 169
diff changeset
63 source ~/.profile.common
94
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
64
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
65 if [ -f ~/.zshrc.local ]; then
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
66 source ~/.zshrc.local
51ca19919894 Try to make setup easier, unify shell environments
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
67 fi
272
f7fd81cbdb0c clean up noisier forms
Meredith Howard <mhoward@roomag.org>
parents: 265
diff changeset
68
1001
0597cb8f2d07 Try to land with my bin first
Meredith Howard <mhoward@roomag.org>
parents: 964
diff changeset
69 path[1,0]=(~/bin)

mercurial