fork/fish-shell

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

exploidecompletions: improved netcat completionsa390e36e9

master
350 B12 linesraw
1# There a several different implementations of netcat.
2# Try to figure out which is the current used one
3# and load the right set of completions.
4
5set -l flavor
6if string match -rq -- '^OpenBSD netcat' (nc -h 2>&1)[1]
7    set flavor nc.openbsd
8else
9    set flavor (command -s nc | path resolve | path basename)
10end
11
12__fish_complete_netcat nc $flavor