LoginSignup
0

More than 3 years have passed since last update.

Mac OSをCatalinaにアップデートしてからgcloudコマンドがnot foundになるのなんで?

Posted at

原因

Catalinaからデフォルトのシェルがbashからzshに変更されたのが原因です。

とりあえず動かす

.bash_profileを編集

 .bash_profile
# 追記
source /SDKが保存されてるディレクトリ/google-cloud-sdk/completion.zsh.inc 
source /SDKが保存されてるディレクト/google-cloud-sdk/path.zsh.inc

ターミナルでsource ~/.bash_profileする。

動く。

今後のことを考えるとzsh用の設定ファイル.zprofileを作成したほうが良さげ

教訓

Catalinaにアップデートしてから

  • ブラウザのフォントがおかしい
  • 勝手にiPhoneのバックアップとる

と素晴らしい追加機能ばかりでAppleさんには大感謝です。
総じて言えることは、OSのアップデートは慎重に!!

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0