Skip to content

Commit

Permalink
feat(gcloud): add gcloud completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Aug 31, 2017
1 parent a77867e commit f553e16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scripts/gcloud-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ if [ ! -z "${AM_PROMPT_DEBUG:-}" ]; then
fi

__prompt-set-gcloud-path() {
if [ -e $HOME/.gcloud/bin/gcloud ]; then
export PATH=$PATH:~/.gcloud/bin
local GCLOUD_PATH_INC=$HOME/.gcloud/path.bash.inc
if [ -e $GCLOUD_PATH_INC ]; then
source $GCLOUD_PATH_INC
fi
}

Expand Down
6 changes: 6 additions & 0 deletions src/scripts/set-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ __prompt-set-prompt() {
eval "$(helm completion bash)" 1>/dev/null 2>&1;
fi

local GCLOUD_COMPLETION_INC=$HOME/.gcloud/completion.bash.inc

if [ -e $GCLOUD_COMPLETION_INC ]; then
source $GCLOUD_COMPLETION_INC
fi

if [ -f $LOCAL_PREFIX/etc/bash_completion ]; then
source $LOCAL_PREFIX/etc/bash_completion
elif [ -f /etc/bash_completion ]; then
Expand Down

0 comments on commit f553e16

Please sign in to comment.