MAC 打開.bash_profile
- 啓動終端Terminal
-
進入當前用戶的home目錄
輸入cd ~
-
創建.bash_profile
輸入touch .bash_profile
-
編輯.bash_profile文件
輸入open -e .bash_profile
-
保存文件,關閉.bash_profile
-
更新剛配置的環境變量
輸入source .bash_profile
MAC 打開.bash_profile
進入當前用戶的home目錄
輸入cd ~
創建.bash_profile
輸入touch .bash_profile
編輯.bash_profile文件
輸入open -e .bash_profile
保存文件,關閉.bash_profile
更新剛配置的環境變量
輸入source .bash_profile