mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
a390e36e9d
- fixed a copy and paste error from 7b8684e
- enhanced ncat completions
12 lines
350 B
Fish
12 lines
350 B
Fish
# There a several different implementations of netcat.
|
|
# Try to figure out which is the current used one
|
|
# and load the right set of completions.
|
|
|
|
set -l flavor
|
|
if string match -rq -- '^OpenBSD netcat' (nc -h 2>&1)[1]
|
|
set flavor nc.openbsd
|
|
else
|
|
set flavor (command -s nc | path resolve | path basename)
|
|
end
|
|
|
|
__fish_complete_netcat nc $flavor
|