fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2# Returns whether we *should* complete a -s or --long argument. 3# The preference is NOT to do so, i.e. prefer subcommands over switches. 4function __fish_should_complete_switches 5for argin ( commandline -ct)[ -1..1] 6if not string match -qr --"^-\S*\$" " $arg " 7return 1 8end 9end 10if string match -qr --"^-" ( commandline -ct)[ -1 ] 11return 0 12end 13 14return 1 15end