summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2018-12-19 22:22:03 +0100
committerAlan Pearce2018-12-19 22:22:03 +0100
commitfc6009c6bd91ddff1b1fbf5faefce0db2c775f28 (patch)
tree9b422fb8e4fe1af56008bde2dae95624d2510c11 /zsh
parent38a65d8463834d1b56c3fb73ba9a7c4e2f6e3665 (diff)
downloaddotfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.tar.lz
dotfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.tar.zst
dotfiles-fc6009c6bd91ddff1b1fbf5faefce0db2c775f28.zip
zsh: Optimise plugins for ssh/mosh connections
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index c490701..63b60b6 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"