diff options
author | Guangxiong Lin <[email protected]> | 2023-11-15 08:58:19 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-11-15 08:58:19 +0800 |
commit | 016c96d8af4c944fb2b9fc0c673f5130472a7977 (patch) | |
tree | b8410f3cea2780043d66a67a8b1e173930488bed /.config/fish/completions/nvm.fish | |
parent | 55c2d8e73db4e9e93cddcb981c15fb8fe9b1dcf4 (diff) | |
download | dotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.tar.gz dotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.tar.bz2 dotfiles-016c96d8af4c944fb2b9fc0c673f5130472a7977.zip |
Update aliases and add fisher
Diffstat (limited to '.config/fish/completions/nvm.fish')
-rw-r--r-- | .config/fish/completions/nvm.fish | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/fish/completions/nvm.fish b/.config/fish/completions/nvm.fish new file mode 100644 index 0000000..14be1b7 --- /dev/null +++ b/.config/fish/completions/nvm.fish @@ -0,0 +1,21 @@ +complete --command nvm --exclusive +complete --command nvm --exclusive --long version --description "Print version" +complete --command nvm --exclusive --long help --description "Print help" +complete --command nvm --long silent --description "Suppress standard output" + +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments install --description "Download and activate the specified Node version" +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments use --description "Activate the specified Node version in the current shell" +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments list --description "List installed Node versions" +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments list-remote --description "List available Node versions to install" +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments current --description "Print the currently-active Node version" +complete --command nvm --exclusive --condition "__fish_seen_subcommand_from install" --arguments "( + test -e $nvm_data && string split ' ' <$nvm_data/.index +)" +complete --command nvm --exclusive --condition "__fish_seen_subcommand_from use" --arguments "(_nvm_list | string split ' ')" +complete --command nvm --exclusive --condition __fish_use_subcommand --arguments uninstall --description "Uninstall the specified Node version" +complete --command nvm --exclusive --condition "__fish_seen_subcommand_from uninstall" --arguments "( + _nvm_list | string split ' ' | string replace system '' +)" +complete --command nvm --exclusive --condition "__fish_seen_subcommand_from use uninstall" --arguments "( + set --query nvm_default_version && echo default +)" |