fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
263 B10 linesraw
1# localization: skip(private)
2# returns 0 only if any argument is on of the supplied arguments
3function __fish_any_arg_in
4    set -l haystack $argv
5    for arg in (commandline -xpc)
6        contains -- $arg $haystack
7        and return 0
8    end
9    return 1
10end