`
wudixiaotie
  • 浏览: 133470 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ubuntu 初始化

阅读更多

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* 
  1. 看看 ~/.bashrc 里面有没有这句,有的话直接把这个 ~/.bash_profile 删掉
  2. 没有的话,把这句添加到 ~/.bashrc 里后再把 ~/.bash_profile 删掉
  3. 调整你的终端设置,编辑 -> 配置文件首选项 -> 标题和命令 -> 以登陆 shell 方式运行命令 前面的勾去掉。关掉重开一个终端,应该就好了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics