diff options
Diffstat (limited to 'completions/ngrep')
-rw-r--r-- | completions/ngrep | 7 |
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 } && |