LoginSignup
4

More than 3 years have passed since last update.

Bash と Zsh で共通の profile を使う

Posted at

Mac を Catalina にアップデートしたところ、Zsh を使うように勧められたので Zsh に切り替えました。  
切り替え方法

Bash と Zsh で環境変数やパスの設定を共通にしたかったので、.my_rofile ファイルを作成し、.bash_profile と .zprofile から呼び出すようにしました。

.bashrc -> .zshrc
.bash_profile -> .zprofile

.bash_profile
source ~/.my_profile
.zprofile
source ~/.my_profile

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
4