diff options
author | Alan Pearce | 2018-12-19 22:22:03 +0100 |
---|---|---|
committer | Alan Pearce | 2018-12-19 22:22:03 +0100 |
commit | fc6009c6bd91ddff1b1fbf5faefce0db2c775f28 (patch) | |
tree | 9b422fb8e4fe1af56008bde2dae95624d2510c11 /zsh | |
parent | 38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665 (diff) | |
download | nixfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.tar.lz nixfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.tar.zst nixfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.zip |
zsh: Optimise plugins for ssh/mosh connections
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.config/zsh/.zshrc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index c4907018..63b60b63 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -146,7 +146,7 @@ zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)rm*]} ]]' lucid zplugin load "MikeDacre/careful_rm" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7" -zplugin ice wait'1' lucid +zplugin ice wait'1' lucid if'[[ -z $SSH_CLIENT ]]' zplugin load "zsh-users/zsh-autosuggestions" zplugin ice wait'1' lucid @@ -206,6 +206,7 @@ then unsetopt zle else AGKOZAK_PROMPT_DIRTRIM=0 + AGKOZAK_LEFT_PROMPT_ONLY=$SSH_CLIENT check_kubectl_context () { if [[ "$PWD" =~ /kubernetes ]] @@ -248,6 +249,6 @@ fi unsetopt flow_control # Let me use ^S and ^Q -zplugin ice wait'1' lucid #atinit'zpcompinit; zpcdreplay -q' -zplugin light "zdharma/fast-syntax-highlighting" +zplugin ice wait'1' if'[[ -z $SSH_CLIENT ]]' lucid #atinit'zpcompinit; zpcdreplay -q' +zplugin load "zdharma/fast-syntax-highlighting" |