summary refs log tree commit diff stats
path: root/zsh/.config
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.config')
-rw-r--r--zsh/.config/zsh/.zshrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 8921d46..b577b1b 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -145,6 +145,7 @@ zstyle ':completion:*' completer _expand _complete _match
 
 zplugin ice blockf wait'0' lucid
 zplugin load "zsh-users/zsh-completions"
+zplugin ice wait'[[ -n ${ZLAST_COMMANDS[(r)k*]} || "$PWD" =~ "kubernetes" ]]'
 zplugin load alanpearce/kubectl-aliases
 zplugin ice wait'1' lucid atinit'alias cdg=cd-gitroot'
 zplugin load "mollifier/cd-gitroot"
@@ -163,7 +164,7 @@ zplugin ice if'[[ $os -eq darwin ]]'
 zplugin snippet "OMZ::lib/functions.zsh"
 zplugin ice if'[[ $os -eq darwin ]]'
 zplugin snippet "OMZ::lib/termsupport.zsh"
-zplugin ice id-as'docker-compose-completion'
+zplugin ice id-as'docker-compose-completion' wait'[[ -n ${ZLAST_COMMANDS[(r)d*]} ]]' lucid
 zplugin snippet "https://github.com/docker/compose/raw/1.24.1/contrib/completion/zsh/_docker-compose"
 
 zplugin ice if'[[ $os -eq darwin ]]' wait'1' lucid