在mac系统中创建.bash_profile

来源:互联网 发布:淘宝最大的卖家有多大 编辑:程序博客网 时间:2024/05/13 08:52
转载自http://blog.sina.com.cn/s/blog_4b55f6860101dh1h.html
1.启动Terminal终端工具
2.输入cd ~/ 进入当前用户的home目录
或cd /Users/YourUserName
3. 创建:
touch .bash_profile
4.打开并编辑:
open .bash_profile
5.保存关闭
6.更新:
source .bash_profile

备注:在finder中显示或隐藏Mac系统隐藏文件:

defaults write com.apple.finder AppleShowAllFiles -bool true 
defaults write com.apple.finder AppleShowAllFiles -bool false
0 0
原创粉丝点击