Google cloud platform 安装Google Cloud SDK时,rc文件的路径是什么?
我下载了tar,并运行install.sh 接下来我收到了这条消息,但是我没有看到任何rc/.rc文件Google cloud platform 安装Google Cloud SDK时,rc文件的路径是什么?,google-cloud-platform,gcloud,google-cloud-sdk,Google Cloud Platform,Gcloud,Google Cloud Sdk,我下载了tar,并运行install.sh 接下来我收到了这条消息,但是我没有看到任何rc/.rc文件 To update your SDK installation to the latest version [162.0.1], run: $ gcloud components update Modify profile to update your $PATH and enable shell command completion? Do you want to continue
To update your SDK installation to the latest version [162.0.1], run:
$ gcloud components update
Modify profile to update your $PATH and enable shell command
completion?
Do you want to continue (Y/n)? y
The Google Cloud SDK installer will now prompt you to update an rc
file to bring the Google Cloud CLIs into your environment.
Enter a path to an rc file to update, or leave blank to use
[/Users/leongaban/.zshrc]:
Leon,Cloud SDK安装程序为您提供了更新
$PATH
的选项,以及为Cloud SDK中的命令安装shell完成。这是通过向shell启动脚本(通常称为rc
文件)添加几行代码来实现的
- 由于您选择了
继续执行此步骤,安装程序会询问y
文件的位置(即shell启动脚本)rc
- 它检测到您使用了
,因此它为您提供了更新此文件的默认选项zsh
/Users/leongaban/.zshrc
- 如果您使用的是
,则必须指定类似bash
/Users/leongaban/.bashrc
您还可以在上一步中选择
n
,并手动更新$PATH
和/或shell完成。啊,是的,我在我的zsh配置导出GOOGLE_SDK_PATH=“/Users/leongaban/projects/GoogleSDK”