Skip to content

Commit 7c7b52a

Browse files
committed
completion/bash: don't always return kind=* when completing --ancestor etc
Signed-off-by: Brice Goglin <[email protected]>
1 parent 693b538 commit 7c7b52a

File tree

1 file changed

+2
-1
lines changed
  • contrib/completion/bash

1 file changed

+2
-1
lines changed

contrib/completion/bash/hwloc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ _hwloc_info(){
224224
COMPREPLY=( `compgen -W "${TYPES[*]/%/:} cache: icache: io:" -- "$cur"` ) && compopt -o nospace
225225
;;
226226
--ancestor | --descendants)
227-
COMPREPLY=( `compgen -W "${TYPES[*]}" -- "$cur"` kind=normal kind=cpu kind=cache kind=memory kind=io kind=all )
227+
COMPREPLY=( `compgen -W "${TYPES[*]} kind=normal kind=cpu kind=cache kind=memory kind=io kind=all" -- "$cur"` )
228+
# TODO "kind=<tab>" doesn't complete with kinds
228229
;;
229230
--local-memory-flags)
230231
COMPREPLY=( "<flags>" "" )

0 commit comments

Comments
 (0)