Skip to content

Commit

Permalink
contrib/completion: simplify things
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Nov 30, 2018
1 parent cfe96db commit 0ff81dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/completion/hwloc-completion.bash
Expand Up @@ -62,7 +62,7 @@ _lstopo() {
if [[ $COMP_CWORD == 1 || $cur == -* ]] ; then
COMPREPLY=( `compgen -W "${OPTIONS[*]}" -- "$cur"` )
elif [[ "$pprev" == "--filter" && "$cur" == ":" ]] ; then
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}" -- ""` )
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}"` )
elif [[ "$ppprev" == "--filter" && "$prev" == ":" ]] ; then
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}" -- "$cur"` )
else
Expand Down Expand Up @@ -151,7 +151,7 @@ _hwloc-info(){
if [[ $COMP_CWORD == 1 || $cur == -* ]] ; then
COMPREPLY=( `compgen -W "${OPTIONS[*]}" -- "$cur"` )
elif [[ "$pprev" == "--filter" && "$cur" == ":" ]] ; then
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}" -- ""` )
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}"` )
elif [[ "$ppprev" == "--filter" && "$prev" == ":" ]] ; then
COMPREPLY=( `compgen -W "${FILTERKINDS[*]}" -- "$cur"` )
else
Expand Down

0 comments on commit 0ff81dd

Please sign in to comment.