天天看點

MAC 打開.bash_profile

  1. 啟動終端Terminal
  2. 進入目前使用者的home目錄

    輸入cd ~

  3. 建立.bash_profile

    輸入touch .bash_profile

  4. 編輯.bash_profile檔案

    輸入open -e .bash_profile

  5. 儲存檔案,關閉.bash_profile
  6. 更新剛配置的環境變量

    輸入source .bash_profile

繼續閱讀