mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +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=()
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
if [ "$COMP_CWORD" = "1" ]; then
|
||||
if [[ "$COMP_CWORD" == "1" ]]; then
|
||||
COMPREPLY=( $(compgen -W "${commands}" -- ${current}) )
|
||||
fi
|
||||
|
||||
if [ $prev = "help" ] && [ "$COMP_CWORD" = "2" ]; then
|
||||
if [[ $prev = "help" && "$COMP_CWORD" == "2" ]]; then
|
||||
COMPREPLY=( $(compgen -W "${help_options}" -- ${current}) )
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue