解决mac上Iterm2中的命令换行遮挡 打开命令行窗口 vim $HOME/.bash_profile,添加下列代码 CLICOLOR=1 LSCOLORS=gxfxcxdxegedabagacad export PS1=’[\033[01;32m]\u@\h[\033[00m]:[\033[01;36m]\w[\033[00m]$’ export TERM=xterm-color 添加完后wq保存退出,执行source .bash_profile,然后重启iterm2就解决了