Mac 下更新 bash profile 檔案

2022-04-06 03:31:46 字數 431 閱讀 1106

1、開啟terminal(終端)

2、cd ~ ( 進入當前使用者的home目錄)

3、open .bash_profile (開啟.bash_profile檔案,如果檔案不存在就  建立檔案:touch .bash_profile  編輯檔案:open -e bash_profile)

4、直接更改彈出的.bash_profile檔案內容

eg:配置adb環境變數:

export path=$:/users/android-sdk-mac_x86/tools:/users/android-sdk-mac_x86/platform-tools

5、command + s 儲存檔案,然後關閉

6、在terminal(終端)中輸入 source .bash_profile (使用剛才更新之後的內容)

from:

Mac 下更新 bash profile檔案

也有的寫 1 開啟terminal 終端 2 cd 進入當前使用者的home目錄 3 open bash profile 開啟.bash profile檔案,如果檔案不存在就 建立檔案 touch bash profile 編輯檔案 open e bash profile 4 直接更改彈出的.bas...

Mac下python版本的更新

一 mac版本如何檢查支援64或32位,可以開啟終端進行命令檢查 二 具體操作 1.檢視mac自帶python版本 開啟終端輸入 python 說明 我的已經公升級了顯示是3.5的,後面會有截圖可對比看到自己的版本。2.開啟終端terminal,輸入 進入到建立py檔案的目錄,然後 vim bash...

Mac下SourceTree匯出更新檔案

sourcetree視覺化git管理工具功能很強大,支援自定義操作可以寫指令碼,現在教大家做乙個匯出更新檔案的指令碼吧 新增自定義操作 選擇檔案匯出 倉庫路徑 repo path 1 匯出檔案的目錄以及新建資料夾路徑 folder users xurongyao web sourcetree upd...