PS1
subl .bashrc
PS1='\n${debian_chroot:+($debian_chroot)}\342\224\214\[\e[01;32m\][\[\e[33m\]\u\[\e[31m\]@\[\e[34m\]\h\[\e[37m\]:\[\e[36m\]\w\[\e[32m\]]\[\e[01;m\]\n\342\224\224\[\e[01;36m\]$\[\e[m\] '
RVM每次新开终端RVM脚本没载入:RVM is not a function
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
- 看看 ~/.bashrc 里面有没有这句,有的话直接把这个 ~/.bash_profile 删掉
- 没有的话,把这句添加到 ~/.bashrc 里后再把 ~/.bash_profile 删掉
- 调整你的终端设置,
编辑 -> 配置文件首选项 -> 标题和命令 -> 以登陆 shell 方式运行命令
前面的勾去掉。关掉重开一个终端,应该就好了。