Skip to content

Commit a426710

Browse files
G. Richard Bellamybgoglin
authored andcommitted
Fix bash completion for zsh
Signed-off-by: G. Richard Bellamy <[email protected]>
1 parent 88f938e commit a426710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/hwloc-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
# bash < 4 doesn't support compopt
7-
test ${BASH_VERSINFO[0]} -lt 4 && return
7+
[[ -z "$ZSH_VERSION" ]] && [[ "${BASH_VERSINFO[0]:-0}" -lt 4 ]] && return
88
# TODO only disable the nospace completion of "--filter"
99

1010

0 commit comments

Comments
 (0)