gcloud command not found - while installing Google Cloud SDK

后端 未结 28 1156
忘掉有多难
忘掉有多难 2020-12-07 13:43

I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) using this command in terminal

curl https://sdk.cloud         


        
28条回答
  •  隐瞒了意图╮
    2020-12-07 14:23

    In short:

    emacs -nw ~/.zshrc
    And add following line at the beginning:
    
    # The next line updates PATH for the Google Cloud SDK.
    source '/home/lesaint/GOOGLE_CLOUD/google-cloud-sdk/path.zsh.inc'
    
    #The next lines enables bash completion in Zsh for gcloud. 
    autoload -U compinit compdef
    compinit
    source '/home/lesaint/GOOGLE_CLOUD/google-cloud-sdk/completion.zsh.inc'
    

    The solution proposed by following article works for me:

    Referencee: http://www.javatronic.fr/tips/2014/10/17/installing_google_cloud_sdk_on_ubuntu_with_oh-my-zsh.html

    Check my solution: -bash: gcloud: command not found on Mac

提交回复
热议问题