标签:
1. vim ~/.bash_profile (无则新建)
添加
if [ -f ~/.bashrc ]; then source ~/.bashrcfi
2.vim ~/.bashrc (无则新建)
添加alias
如 alias workspace=‘cd ~/my/workspace‘
Mac添加bash alias
原文地址:http://www.cnblogs.com/mengff/p/5841576.html