fork/fish-shell

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

Fabian Boehmcompletions/netcat: Use path7b8684e46

master
362 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' (netcat -h 2>&1)[1]
7    set flavor nc.openbsd
8else
9    set flavor (command -s netcat | path resolve | path basename)
10end
11
12__fish_complete_netcat netcat $flavor