fish-nvm: Infinite loop / infinite recursion

Hello,

First of all thank you for this package. It has been useful to me.

Since fish 3.0, I am encountering an issue where fish is sourced indefinitely. This happen when I run commands that are added to /usr/local/bin/ by nvm_alias_command.

It seems like the problem is related to __nvm_run. Also, when I comment the __nvm_run command in /usr/local/bin/node for instance, a new fish shell is launched but doesn’t cause recursion

I have installed fish-nvm using Oh my fish.

Thanks, Amadou

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

I have been able to reproduce the problem inside a Docker container.

rm -rf $OMF_CONFIG
git clone https://github.com/ahasall/omf-config.git $OMF_CONFIG

rm -rf .config/fish
git clone https://github.com/ahasall/fish-config.git .config/fish

nvm_alias_command

yarn