From c7087bdc890c26ad878dd70e0d779c596a606a75 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 Jun 2018 16:54:53 +0200 Subject: zsh: Setup gcloud completion --- zsh/.config/zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 0816bba..a26ff23 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] ]] -- cgit 1.4.1