Open crimson-gao opened 1 year ago
Did you install using zsh
or bash
?
See https://github.com/moovweb/gvm#installing
Or if you are using zsh just change
bash
withzsh
@crimson-gao kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv
Here my zsh version is
zsh 5.9 (x86_64-pc-linux-gnu)
, gvm version is v1.0.22. And I'm using oh-my-zsh. After install gvm, gvm updates my profile .bashrc, not .zshrc I useenv | grep -i zsh
, it printsIt seems there is no
ZSH_NAME
environment variable, butZSH
Instead. It's ok for me to copy the code from bashrc to zshrc, but it would be better if got fixed. Here is a piece of code from gvm: