一般在Mac上配置環境變量時經常要創建、編輯 .bash_profile文件。 ...
. 啟動終端Terminal . 進入當前用戶的home目錄 輸入cd . 創建.bash profile 輸入touch .bash profile . 編輯.bash profile文件 輸入open .bash profile 第一種方式 lt gt 為在彈出的.bash profile文件內進行編輯 lt gt 編輯完成后直接保存文件 lt gt 關閉.bash profile文件 lt ...
2019-06-05 13:53 0 2917 推薦指數:
一般在Mac上配置環境變量時經常要創建、編輯 .bash_profile文件。 ...
touch ~/.bash_profile; // 將目錄跳轉到.bash_profile這個文件夾 open -t ~/.bash_profile //打開.bash_profile文件 這時候會彈出一個新的窗口輸入 export PATH=$PATH:/Users/XXXXX ...
1、打開terminal(終端) 2、cd ~ ( 進入當前用戶的home目錄) 3、open .bash_profile (打開.bash_profile文件,如果文件不存在就 創建文件:touch .bash_profile 編輯文件:open -e bash_profile ...
1. 啟動終端Terminal 2. 進入當前用戶的home目錄 輸入cd ~ 3. 創建.bash_profile 輸入touch .bash_profile 4. 編輯.bash_profile文件 輸入open -e .bash_profile ...
.bash_profile配置文件 手動刪掉淘汰了的python2,用command line too ...
開發Android的環境要重新在Mac上搭建,結果在配置環境變量時找不到.bash_profile文件。查過很多資料解決方案都很籠統,結果還是在英文網站上找到解決方法。 1. 啟動終端Terminal 2. 進入當前用戶的home目錄 ...
說說配置環境變量的方法: vim ~/.bash_profile 進入配置文件 添加路徑例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,執行生效的指令 由於我每次關閉 ...