completions/netcat: Use path

This commit is contained in:
Fabian Boehm 2023-01-25 20:05:55 +01:00
parent cac483c67a
commit 7b8684e469
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ set -l flavor
if string match -rq -- '^OpenBSD netcat' (nc -h 2>&1)[1]
set flavor nc.openbsd
else
set flavor (basename (realpath (command -v nc)))
set flavor (command -s netcat | path resolve | path basename)
end
__fish_complete_netcat nc $flavor

View File

@ -6,7 +6,7 @@ set -l flavor
if string match -rq -- '^OpenBSD netcat' (netcat -h 2>&1)[1]
set flavor nc.openbsd
else
set flavor (basename (realpath (command -v netcat)))
set flavor (command -s netcat | path resolve | path basename)
end
__fish_complete_netcat netcat $flavor