mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
completions/netcat: Use path
This commit is contained in:
parent
cac483c67a
commit
7b8684e469
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue