mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
29f35d6cdf
This gives us more accurate completions because completion scripts get expanded paths
10 lines
233 B
Fish
10 lines
233 B
Fish
# returns 0 only if any argument is on of the supplied arguments
|
|
function __fish_any_arg_in
|
|
set -l haystack $argv
|
|
for arg in (commandline -xpc)
|
|
contains -- $arg $haystack
|
|
and return 0
|
|
end
|
|
return 1
|
|
end
|