diff options
Diffstat (limited to 'completions/ss')
-rw-r--r-- | completions/ss | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/ss b/completions/ss index 63e6a458..b240c5e0 100644 --- a/completions/ss +++ b/completions/ss @@ -16,9 +16,10 @@ _ss() ;; -A|--query) local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*}," - COMPREPLY=( $( compgen -P "$prefix" -W '$( "$1" --help | \ + COMPREPLY=( $( compgen -W '$( "$1" --help | \ command sed -e "s/|/ /g" -ne "s/.*QUERY := {\([^}]*\)}.*/\1/p" )' \ -- "${cur##*,}" ) ) + [[ ${#COMPREPLY[@]} -eq 1 ]] && COMPREPLY=( ${COMPREPLY/#/$prefix} ) return ;; -D|--diag|-F|--filter) |