Skip to content

Instantly share code, notes, and snippets.

@dwchiang
Created April 16, 2014 10:30
Show Gist options
  • Select an option

  • Save dwchiang/10849350 to your computer and use it in GitHub Desktop.

Select an option

Save dwchiang/10849350 to your computer and use it in GitHub Desktop.

Revisions

  1. dwchiang created this gist Apr 16, 2014.
    5 changes: 5 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # The next line updates PATH for the Google Cloud SDK.
    source /Users/dwchiang/google-cloud-sdk/path.zsh.inc

    # The next line enables zsh completion for gcloud.
    source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc
    8 changes: 8 additions & 0 deletions path.zsh.inc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    script_link="$( readlink "$0" )" || script_link="$0"
    apparent_sdk_dir="${script_link%/*}"
    if [ "$apparent_sdk_dir" == "$script_link" ]; then
    apparent_sdk_dir=.
    fi
    sdk_dir="$( cd -P "$apparent_sdk_dir" && pwd -P )"
    bin_path="$sdk_dir/bin"
    export PATH=$bin_path:$PATH