mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
bash-completion: Bash has & should use [[ == ]]
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
This commit is contained in:
parent
e5da2b701f
commit
4033d87fdd
1 changed files with 2 additions and 2 deletions
|
@ -52,11 +52,11 @@ _notmuch()
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
if [ "$COMP_CWORD" = "1" ]; then
|
if [[ "$COMP_CWORD" == "1" ]]; then
|
||||||
COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
|
COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $prev = "help" ] && [ "$COMP_CWORD" = "2" ]; then
|
if [[ $prev = "help" && "$COMP_CWORD" == "2" ]]; then
|
||||||
COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
|
COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue