summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-06-07 16:54:53 +0200
committerAlan Pearce2018-06-07 16:55:00 +0200
commitc7087bdc890c26ad878dd70e0d779c596a606a75 (patch)
treedb078bcfbef39390a3c31c4c7e46a524bc02364c
parent4f7594602d15923f8b43fa3e74e3f904528f0053 (diff)
downloadnixfiles-c7087bdc890c26ad878dd70e0d779c596a606a75.tar.lz
nixfiles-c7087bdc890c26ad878dd70e0d779c596a606a75.tar.zst
nixfiles-c7087bdc890c26ad878dd70e0d779c596a606a75.zip
zsh: Setup gcloud completion
-rw-r--r--zsh/.config/zsh/.zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 0816bbac..a26ff233 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -163,6 +163,13 @@ fi
 
 zplugin ice atinit 'zpcompinit; zpcdreplay -q'
 
+if [[ -n $commands[gcloud] ]]
+then
+   autoload bashcompinit
+   bashcompinit
+   source ${$(readlink =gcloud):h}/../etc/bash_completion.d/gcloud.inc
+fi
+
 # General configuration
 
 if [[ -n $commands[gpg2] && -z $commands[gpg] ]]