我按照这个指南安装了prezto:http://codurance.com/2015/03/16/installing-zprezto-a-quick-guide/
如果我从一个不在git中的常规文件夹开始,我会在提示符中看到预期的当前工作目录。
~/Documents/projects/一旦我切换到在git中管理的目录,提示符就会变成:
~RVM_PROJECT_PATH [feature/awesome]其中feature/awesome是我的分支名称。
无论我配置使用哪种提示符,只要我导航到git代码库,RVM_PROJECT_PATH就会出现。我该如何解决这个问题?
发布于 2016-02-27 02:29:57
把这个放到你的~/.zshc中
unsetopt auto_name_dirs感谢mcornella的回复:https://github.com/rvm/rvm/issues/3091#issuecomment-60083194
在zsh 5.2中测试(x86_64-未知-linux-gnu)
发布于 2019-07-26 13:36:30
我也有这个问题,我有一个旧版本的prezto。多亏了~/.zprezto/modules/ruby/init.zsh中的这个更新,更新prezto (cd到~/.zprezto && git pull && git submodule update --init --recursive)解决了这个问题
# Load RVM into the shell session.
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
# Unset AUTO_NAME_DIRS since auto adding variable-stored paths to ~ list
# conflicts with RVM.
unsetopt AUTO_NAME_DIRS
# Source RVM.
source "$HOME/.rvm/scripts/rvm"
...
# Prepend local gems bin directories to PATH.
else
path=($HOME/.gem/ruby/*/bin(N) $path)
fihttps://stackoverflow.com/questions/35237637
复制相似问题