Compare commits
2 Commits
8f1bdf3c01
...
d9db8f62ff
Author | SHA1 | Date | |
---|---|---|---|
d9db8f62ff | |||
f53c2c8ff5 |
@ -1,5 +1,6 @@
|
||||
function _nvm_list
|
||||
set --local versions $nvm_data/*
|
||||
set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*)
|
||||
|
||||
set --query versions[1] &&
|
||||
string match --entire --regex -- (string match --regex -- "v\d.+" $versions |
|
||||
string escape --style=regex |
|
||||
|
@ -1,6 +1,6 @@
|
||||
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
||||
set --local fisher_version 4.4.4
|
||||
set --local fisher_version 4.4.5
|
||||
set --local fish_plugins $__fish_config_dir/fish_plugins
|
||||
|
||||
switch "$cmd"
|
||||
@ -29,7 +29,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||
set --local old_plugins $_fisher_plugins
|
||||
set --local new_plugins
|
||||
|
||||
test -e $fish_plugins && set --local file_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
|
||||
test -e $fish_plugins && set --local file_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins | string replace -- \~ ~)
|
||||
|
||||
if ! set --query argv[2]
|
||||
if test "$cmd" != update
|
||||
@ -206,7 +206,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||
contains -- (string lower -- $plugin) (string lower -- $commit_plugins) || set --append commit_plugins $plugin
|
||||
end
|
||||
|
||||
printf "%s\n" $commit_plugins >$fish_plugins
|
||||
string replace --regex -- $HOME \~ $commit_plugins >$fish_plugins
|
||||
else
|
||||
set --erase _fisher_plugins
|
||||
command rm -f $fish_plugins
|
||||
|
@ -29,7 +29,7 @@ function nvm --description "Node version manager"
|
||||
|
||||
switch "$cmd"
|
||||
case -v --version
|
||||
echo "nvm, version 2.2.14"
|
||||
echo "nvm, version 2.2.15"
|
||||
case "" -h --help
|
||||
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
||||
echo " nvm install Install the version specified in the nearest .nvmrc file"
|
||||
|
Loading…
x
Reference in New Issue
Block a user