- 啟動終端Terminal
-
進入目前使用者的home目錄
輸入cd ~
-
建立.bash_profile
輸入touch .bash_profile
-
編輯.bash_profile檔案
輸入open -e .bash_profile
- 儲存檔案,關閉.bash_profile
-
更新剛配置的環境變量
輸入source .bash_profile
進入目前使用者的home目錄
輸入cd ~
建立.bash_profile
輸入touch .bash_profile
編輯.bash_profile檔案
輸入open -e .bash_profile
更新剛配置的環境變量
輸入source .bash_profile