Closed conao3 closed 5 years ago
fish is not support eval (anyenv init -)
, so add below code to config.fish (with anyenv)
set PATH "$HOME/.anyenv/bin" $PATH
anyenv init - | source
my fish
is v2.7.1
[Deprecated] nodenv is better alternative Please consider to use nodenv. ndenv repository is not maintained actively.
OK. Close PR.
add ndenv.fish for fish user.
I copied almost code by rbenv.fish and pyenv.fish.
function __fish_rbenv_using_command set cmd (commandline -opc) if [ (count $cmd) -gt 1 ] if [ $argv[1] = $cmd[2] ] return 0 end end return 1 end
complete -f -c rbenv -n '__fish_rbenv_needs_command' -a '(rbenv commands)' for cmd in (rbenv commands) complete -f -c rbenv -n "__fish_rbenv_using_command $cmd" -a \ "(rbenv completions (commandline -opc)[2..-1])" end