Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd 命令无法使用 #450

Open
awaiter opened this issue Oct 12, 2023 · 5 comments
Open

cd 命令无法使用 #450

awaiter opened this issue Oct 12, 2023 · 5 comments

Comments

@awaiter
Copy link

awaiter commented Oct 12, 2023

export GVM_DIR="$HOME/.gvm"
[ -s "$GVM_DIR/scripts/gvm" ] && source "$GVM_DIR/scripts/gvm"
加载上述环境变量后,无法使用cd跳转目录

@awaiter
Copy link
Author

awaiter commented Oct 13, 2023

问题找到了
https://github.com/moovweb/gvm/blob/master/scripts/gvm-default 最后一行
. "$GVM_ROOT/scripts/env/cd" && cd . 会影响系统cd命令不可使用,解决方案为注释

@ankitcharolia
Copy link

@awaiter kindly try this out. I am using this goenv: https://github.com/ankitcharolia/goenv.

@yunfanYlz
Copy link

问题找到了 https://github.com/moovweb/gvm/blob/master/scripts/gvm-default 最后一行 . "$GVM_ROOT/scripts/env/cd" && cd . 会影响系统cd命令不可使用,解决方案为注释

干的漂亮,可惜我没早看到

@shiangogo
Copy link

问题找到了 https://github.com/moovweb/gvm/blob/master/scripts/gvm-default 最后一行 . "$GVM_ROOT/scripts/env/cd" && cd . 会影响系统cd命令不可使用,解决方案为注释

謝謝你,我的問題是 cd 命令變得非常慢,把這行註解之後就可以了。

@rbzx123
Copy link

rbzx123 commented Apr 10, 2024

坑了我一上午,谢谢你 好心人

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants