about summary refs log tree commit diff
path: root/Completion/Unix/Command/_netcat
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_netcat')
-rw-r--r--Completion/Unix/Command/_netcat4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_netcat b/Completion/Unix/Command/_netcat
index d5e854e12..082b8afde 100644
--- a/Completion/Unix/Command/_netcat
+++ b/Completion/Unix/Command/_netcat
@@ -3,6 +3,10 @@
 local curcontext="$curcontext" state line expl
 typeset -A opt_args
 
+# handle name clash with the nedit client
+[[ $service = nc ]] && ! _pick_variant netcat=connect nedit -h &&
+    _nedit && return
+
 if (( ! $+_nc_args )); then
   local help="$(_call_program options nc -h < /dev/null 2>&1)"
   local -A optionmap