不存在就新建呗~
- $ cd ~/
- $ touch .bash_profile
- $ open -e .bash_profile
然后输入以下内容, set color 的部分是配置 iterm2 的字体颜色, set mysql 部分是设置数据库到全局环境中
- export NVM_DIR=~/.nvm
- #set color
- export CLICOLOR=1
- export LSCOLORS=ExFxBxDxCxegedabagacad
- # set mysql
- PATH=$PATH:/usr/local/mysq/bin
清除缓存
$ source ~/.bash_profile
来源: http://www.bubuko.com/infodetail-2510883.html