mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Update ebuild.fish
greatly simplify __fish_seen_ebuild_arg
This commit is contained in:
parent
29b67030b8
commit
0b0e65a8a4
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue