From 84da16982da3eac32bb4f3202f0eb80eff887777 Mon Sep 17 00:00:00 2001 From: quak Date: Mon, 21 Apr 2025 17:38:32 +0200 Subject: [PATCH] fixed bash completions for `navigate:book(marks)` --- scripts/navigate_bash_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/navigate_bash_setup b/scripts/navigate_bash_setup index 7aac625..a9b134d 100644 --- a/scripts/navigate_bash_setup +++ b/scripts/navigate_bash_setup @@ -32,12 +32,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] = "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] = "add" ]]; then + if [[ "${COMP_WORDS[1]}" = "add" ]]; then COMPREPLY=($(compgen -o dirnames -- $CURRENT_WORD)) fi fi