不存在就新建呗~ $ cd ~/ $ touch .bash_profile $ open -e .bash_profile 然后输入以下内容 # set color的部分是配置iterm2的字体颜色 # set mysql 部分是设置数据库到全局环境中. export NVM_DIR=~/.nvm #set color export CLICOLOR= export LSCOLORS=ExFxBxDxCxegedabagacad #set mysql export PATH=$PATH:/us…
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. Start up Terminal Type "cd ~/" to go to your home folder Type "touch .bash_profile" to create y…