Update ebuild.fish

greatly simplify __fish_seen_ebuild_arg
This commit is contained in:
Wilke Schwiedop 2018-04-19 21:41:25 +02:00 committed by Fabian Homborg
parent 29b67030b8
commit 0b0e65a8a4

View file

@ -1,13 +1,5 @@
function __fish_seen_ebuild_arg -d "Test if an ebuild-argument has been given in the current commandline" function __fish_seen_ebuild_arg -d "Test if an ebuild-argument has been given in the current commandline"
set -l cmd (commandline -poc) commandline -opc | string match -q '*.ebuild'
set -e cmd[1]
for i in $cmd
switch $i
case '*.ebuild'
return 0
end
end
return 1
end end
## Opts ## Opts