diff options
Diffstat (limited to 'completions/nc')
-rw-r--r-- | completions/nc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/completions/nc b/completions/nc index 055924c9..61bf5b52 100644 --- a/completions/nc +++ b/completions/nc @@ -36,13 +36,11 @@ _nc() # Complete 1st non-option arg only local i for (( i=1; i < cword; i++ )); do - [[ ${words[i]} != -* && \ - ${words[i-1]} != @(-I|-i|-O|-P|-p|-s|-T|-V|-w|-X|-x) ]] && \ - return + [[ ${words[i]} != -* && ${words[i-1]} != -[IiOPpsTVwXx] ]] && return done _known_hosts_real "$cur" } && complete -F _nc nc -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |