fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2# returns 0 only if previous argument is one of the supplied arguments 3function __fish_prev_arg_in 4set -l tokens( commandline -cx) 5set -l tokenCount( count $tokens ) 6if test $tokenCount -lt 2 7# need at least cmd and prev argument 8return 1 9end 10for argin $argv 11if string match -q --$tokens [ -1 ] $arg 12return 0 13end 14end 15 16return 1 17end