fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
363 B12 linesraw
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
10    set -l regex (string escape --style=regex -- (commandline -pxc)[2..] | string join '|')
11    string match -rq -- "^($regex)\$" $argv
12end