From 88db002985af0cb004264976c09f417a43ebd4c5 Mon Sep 17 00:00:00 2001 From: quak Date: Sat, 1 Feb 2025 10:13:09 +0100 Subject: [PATCH] fixed string comparisons in setup script --- navigate_bash_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navigate_bash_setup b/navigate_bash_setup index 38c8766..5ebcf41 100644 --- a/navigate_bash_setup +++ b/navigate_bash_setup @@ -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