RVM 在 ZSH 终端中显示 Ruby 版本号

2022-11-28  本文已影响0人  it之承影含光

编辑主题文件:

# 1.打开主题文件
vim ~/.oh-my-zsh/themes/gallois.zsh-theme

# 2.找到ruby_prompt_info,删除
RPS1="\$(git_custom_status)\$(ruby_prompt_info)${RPS1:+ $RPS1}"
# 修改为
RPS1="\$(git_custom_status)\${RPS1:+ $RPS1}"
source ~/.zshrc 

以上执行后,再重新打开个终端就看见行位的ruby版本信息没有了
以前有


image.png

修改后


image.png
上一篇 下一篇

猜你喜欢

热点阅读