mac下創(chuàng)建bash_profile文件

1. 啟動終端Terminal

~/.bash_profile

No such file or directory

2. 進入當前用戶的home目錄

????輸入cd ~

3. 創(chuàng)建.bash_profile

????輸入touch .bash_profile

4. 編輯.bash_profile文件

????輸入open -e .bash_profile

5. 保存文件,關(guān)閉.bash_profile

6. 更新剛配置的環(huán)境變量

????輸入source .bash_profile

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容