diff options
Diffstat (limited to 'completions/pgrep')
-rw-r--r-- | completions/pgrep | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/pgrep b/completions/pgrep index 82985acf..e45d7d7f 100644 --- a/completions/pgrep +++ b/completions/pgrep @@ -6,41 +6,41 @@ _pgrep() _init_completion || return case $prev in - -c|-d|--delimiter|-g|--pgroup|-J|-M|-N|-s|--session|-t|--terminal|-T|-z) + --delimiter|--pgroup|--session|--terminal|-!(-*)[cdgJMNstTz]) return ;; --signal) _signals return ;; - -F|--pidfile) + --pidfile|-!(-*)F) _filedir return ;; - -G|--group) + --group|-!(-*)G) _gids return ;; -j) - COMPREPLY=( $( compgen -W 'any none' -- "$cur" ) ) + COMPREPLY=( $(compgen -W 'any none' -- "$cur") ) return ;; - -P|--parent) + --parent|-!(-*)P) _pids return ;; - -u|--euid|-U|--uid) + --euid|--uid|-!(-*)[uU]) _uids return ;; esac if [[ $cur == -* ]]; then - local help='$( _parse_help "$1" )' - [[ $help ]] || help='$( "$1" --usage 2>&1 | + local help='$(_parse_help "$1")' + [[ $help ]] || help='$("$1" --usage 2>&1 | command sed -e "s/\[-signal\]//" -e "s/\[-SIGNAL\]//" | - _parse_usage - )' - COMPREPLY=( $( compgen -W "$help" -- "$cur" ) ) + _parse_usage -)' + COMPREPLY=( $(compgen -W "$help" -- "$cur") ) [[ $cword -eq 1 && $1 == *pkill ]] && _signals - return fi |