fixed navigate completion string comparison
This commit is contained in:
@@ -28,12 +28,12 @@ function _book {
|
||||
BOOKMARKS="add remove $(__call_navigate bookmark names)"
|
||||
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
|
||||
elif [[ COMP_CWORD -eq 2 ]]; then
|
||||
if [[ COMP_WORDS[1] -eq "remove" ]]; then
|
||||
if [[ COMP_WORDS[1] = "remove" ]]; then
|
||||
BOOKMARKS="$(__call_navigate bookmark names)"
|
||||
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
|
||||
fi
|
||||
elif [[ COMP_CWORD -eq 3 ]]; then
|
||||
if [[ COMP_WORDS[1] -eq "add" ]]; then
|
||||
if [[ COMP_WORDS[1] = "add" ]]; then
|
||||
COMPREPLY=($(compgen -o dirnames -- $CURRENT_WORD))
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user