fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_gnu_complete -d"Wrapper for the complete built-in. Skips the long completions on non-GNU systems" 3set -l is_gnu0 4 5set -l argv_out 6 7# Check if we are using a gnu system 8for iin $argv 9switch $i 10 11case -g --is-gnu 12set is_gnu1 13 14case '*' 15set argv_out$argv_out $i 16end 17end 18 19set argv$argv_out 20set argv_out 21set -l skip_next0 22 23# Remove long option if not on a gnu system 24switch $is_gnu 25case 0 26for iin $argv 27 28switch $skip_next 29 30case 1 31set skip_next0 32continue 33 34end 35 36switch $i 37 38case -l --long 39set skip_next1 40continue 41 42end 43 44set argv_out$argv_out $i 45end 46set argv$argv_out 47 48end 49 50complete $argv 51 52end