mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +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"
|
||||
set -l cmd (commandline -poc)
|
||||
set -e cmd[1]
|
||||
for i in $cmd
|
||||
switch $i
|
||||
case '*.ebuild'
|
||||
return 0
|
||||
end
|
||||
end
|
||||
return 1
|
||||
commandline -opc | string match -q '*.ebuild'
|
||||
end
|
||||
|
||||
## Opts
|
||||
|
|
Loading…
Reference in a new issue