如何在你的MACOS,創建.bash_profile(隱藏文件)

 

A typical install of OS X won't create a .bash_profile for you. When you want to run functions from your command line, this is a must-have.(For ex:configure path to Android)

  1. Start up Terminal
  2. Type "cd ~/" to go to your home folder
  3. Type "touch .bash_profile" to create your new file.
  4. Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
  5. Add a line
         
       (your-sdk-dir:Installation path of your android,then remove <> )
     6.OK

     注:.bash_profile是屬於系統文件(隱藏),可在終端輸入以下命令來顯示或隱藏文件(注意命令中的空格):
          顯示 Mac 隱藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
        隱藏
Mac 隱藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章