From fc6009c6bd91ddff1b1fbf5faefce0db2c775f28 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 19 Dec 2018 22:22:03 +0100 Subject: zsh: Optimise plugins for ssh/mosh connections --- zsh/.config/zsh/.zshrc | 7 ++++--- 1 file 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" -- cgit 1.4.1