mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Improve fish_plugins read regex
This commit is contained in:
parent
d1a9ae0f7f
commit
b2501f620d
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
if test "$cmd" != update
|
if test "$cmd" != update
|
||||||
echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
|
echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
|
||||||
else if test ! -e $fish_plugins
|
else if test ! -e $fish_plugins
|
||||||
echo "fisher: fish_plugins file not found: \"$cmd\"" >&2 && return 1
|
echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
|
||||||
end
|
end
|
||||||
set arg_plugins (string match --regex --invert '^\s*$' -- <$fish_plugins)
|
set arg_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
|
||||||
end
|
end
|
||||||
|
|
||||||
for plugin in $arg_plugins
|
for plugin in $arg_plugins
|
||||||
|
|
Loading…
Reference in a new issue