summaryrefslogtreecommitdiff
path: root/completions/vmstat
diff options
context:
space:
mode:
Diffstat (limited to 'completions/vmstat')
-rw-r--r--completions/vmstat10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/vmstat b/completions/vmstat
index 769620a7..f15d4089 100644
--- a/completions/vmstat
+++ b/completions/vmstat
@@ -6,20 +6,20 @@ _vmstat()
_init_completion || return
case $prev in
- -h|--help|-V|--version|-c|-M|-N|-n|-w|-p|--partition)
+ --help|--version|--partition|-!(-*)[hVcMNnwp])
return
;;
- -S|--unit)
+ --unit|-!(-*)S)
[[ $OSTYPE == *linux* ]] && \
- COMPREPLY=( $( compgen -W 'k K m M' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'k K m M' -- "$cur") )
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
[[ $COMPREPLY ]] || \
- COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
fi
} &&
complete -F _vmstat vmstat