fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2 3# 4# Test to see if we've seen a subcommand from a list. 5# This logic may seem backwards, but the commandline will often be much shorter 6# than the list 7# 8 9function __fish_seen_subcommand_from 10set -l regex( string escape --style=regex --( commandline -pxc)[ 2..] | string join'|' ) 11string match -rq --"^( $regex )\$" $argv 12end