all repos — nixfiles @ 025158e41a21a8d17346a5825258e0893093b492

System and user configuration, managed by nix and home-manager

zsh: cleanup

Alan Pearce
commit

025158e41a21a8d17346a5825258e0893093b492

parent

9a9742dc4e7ad819de012ae00bbd4ee2784740c5

1 file changed, 14 insertions(+), 23 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.config/zsh/.zshrc
@@ -136,11 +136,11 @@ zplugin ice blockf wait'0' lucid
zplugin light "zsh-users/zsh-completions" zplugin ice wait'1' lucid zplugin light "hlissner/zsh-autopair" -zplugin ice atload'alias kx=kubectx' cp'kube-aliases.plugin.zsh -> kube-aliases.zsh' atclone'sed -i s+"$ZSH_CUSTOM/plugins/zsh-kubernetes+$PWD+" kube-aliases.zsh' atpull'%atclone' pick'kube-aliases.zsh' nocompile +zplugin ice atload'alias kx=kubectx' cp'kube-aliases.plugin.zsh -> kube.plugin.zsh' atclone'sed -i s+"$ZSH_CUSTOM/plugins/zsh-kubernetes+$PWD+" kube.plugin.zsh' atpull'%atclone' pick'kube.plugin.zsh' zplugin light "dbz/kube-aliases" zplugin ice wait'1' lucid atinit'alias cdg=cd-gitroot' zplugin load "mollifier/cd-gitroot" -zplugin ice wait'1' lucid +zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)rm*]} ]]' lucid zplugin load "MikeDacre/careful_rm" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7"
@@ -150,33 +150,23 @@
zplugin ice wait'1' lucid zplugin light "arzzen/calc.plugin.zsh" +# provides the title function and macOS title-folder sync +zplugin ice if'[[ $os -eq darwin ]]' zplugin snippet "OMZ::lib/functions.zsh" +zplugin ice if'[[ $os -eq darwin ]]' zplugin snippet "OMZ::lib/termsupport.zsh" -if [[ $os -eq darwin ]] -then - zplugin load "unixorn/tumult.plugin.zsh" -fi - -if [[ -n $commands[npm] ]] -then - zplugin light "lukechilds/zsh-better-npm-completion" -fi +zplugin ice if'[[ $os -eq darwin ]]' wait'1' lucid +zplugin load "unixorn/tumult.plugin.zsh" -if [[ -n $commands[yarn] ]] -then - zplugin snippet "https://github.com/robbyrussell/oh-my-zsh/raw/master/plugins/yarn/yarn.plugin.zsh" -fi +zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)npm*]} ]]' lucid +zplugin light "lukechilds/zsh-better-npm-completion" -if [[ -n $commands[nix-env] ]] -then - zplugin light "spwhitt/nix-zsh-completions" -fi +zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)nix*]} ]]' lucid +zplugin light "spwhitt/nix-zsh-completions" -if [[ -n $commands[ghq] ]] -then - zplugin light "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh" -fi +zplugin ice if'[[ -n $commands[ghq] ]]' +zplugin light "${GOPATH:=$HOME/go}/src/github.com/motemen/ghq/zsh" if [[ -n $commands[gcloud] ]] then
@@ -258,3 +248,4 @@ unsetopt flow_control # Let me use ^S and ^Q
zplugin ice wait'1' lucid #atinit'zpcompinit; zpcdreplay -q' zplugin light "zdharma/fast-syntax-highlighting" +