diff options
Diffstat (limited to 'completions/nethogs')
-rw-r--r-- | completions/nethogs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/nethogs b/completions/nethogs index 85fc1cb4..5cd3650e 100644 --- a/completions/nethogs +++ b/completions/nethogs @@ -8,19 +8,19 @@ _nethogs() case "$prev" in -d) # expect integer value - COMPREPLY+=( $(compgen -W '{0..9}') ) + COMPREPLY+=($(compgen -W '{0..9}')) compopt -o nospace return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_usage "$1" -h)' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_usage "$1" -h)' -- "$cur")) return fi _available_interfaces -a } && -complete -F _nethogs nethogs + complete -F _nethogs nethogs # ex: filetype=sh |