all repos — archive/dotfiles @ fc6009c6bd91ddff1b1fbf5faefce0db2c775f28

Superseded by nixfiles

zsh: Optimise plugins for ssh/mosh connections
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 22:22:03 +0100
commit

fc6009c6bd91ddff1b1fbf5faefce0db2c775f28

parent

38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.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"