summaryrefslogtreecommitdiff
path: root/completions/ngrep
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
commit5732da2af736c40cf693354485446ab4867ecb4d (patch)
tree76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/ngrep
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/ngrep')
-rw-r--r--completions/ngrep7
1 files changed, 4 insertions, 3 deletions
diff --git a/completions/ngrep b/completions/ngrep
index bbfbbd2f..65f4dc6d 100644
--- a/completions/ngrep
+++ b/completions/ngrep
@@ -10,15 +10,16 @@ _ngrep()
return
;;
-I|-O)
- _filedir pcap
+ _filedir 'pcap?(ng)'
return
;;
-d)
_available_interfaces -a
+ COMPREPLY+=( $(compgen -W 'any' -- "$cur") )
return
;;
-W)
- COMPREPLY=( $( compgen -W 'normal byline single none' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'normal byline single none' -- "$cur") )
return
;;
-F)
@@ -28,7 +29,7 @@ _ngrep()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" -h)' -- "$cur") )
return
fi
} &&