summaryrefslogtreecommitdiff
path: root/completions/pkg-config
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pkg-config')
-rw-r--r--completions/pkg-config13
1 files changed, 7 insertions, 6 deletions
diff --git a/completions/pkg-config b/completions/pkg-config
index a537d497..57191370 100644
--- a/completions/pkg-config
+++ b/completions/pkg-config
@@ -15,9 +15,9 @@ _pkg_config()
local i
for (( i=1; i < ${#words[@]}; i++ )); do
if [[ ${words[i]} != -* ]]; then
- COMPREPLY=( $( compgen -W \
- '$( "$1" ${words[i]} --print-variables 2>/dev/null )' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W \
+ '$("$1" ${words[i]} --print-variables 2>/dev/null)' \
+ -- "$cur") )
break
fi
done
@@ -32,11 +32,12 @@ _pkg_config()
$split && return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
else
- COMPREPLY=( $( compgen -W "$( $1 --list-all \
- 2>/dev/null | awk '{print $1}' )" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$($1 --list-all \
+ 2>/dev/null | awk '{print $1}')" -- "$cur") )
+ _filedir pc
fi
} &&
complete -F _pkg_config pkg-config