From 1512d5117e4fc093cf2139278d7eb013e662fdcb Mon Sep 17 00:00:00 2001 From: scbj Date: Wed, 28 Jan 2026 09:49:17 +0100 Subject: [PATCH] added completions for `book clean` --- navigate_bash_setup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/navigate_bash_setup b/navigate_bash_setup index b0d7f2d..4e12a33 100644 --- a/navigate_bash_setup +++ b/navigate_bash_setup @@ -33,10 +33,12 @@ function navconfig { function _book { CURRENT_WORD=${COMP_WORDS[COMP_CWORD]} if [[ COMP_CWORD -eq 1 ]]; then - BOOKMARKS="add remove $(__call_navigate bookmark completions)" + BOOKMARKS="add remove clean $(__call_navigate bookmark completions)" COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD)) elif [[ COMP_CWORD -eq 2 ]]; then - if [[ "${COMP_WORDS[1]}" = "remove" ]]; then + if [[ "${COMP_WORDS[1]}" = "clean" ]]; then + unset COMPREPLY + elif [[ "${COMP_WORDS[1]}" = "remove" ]]; then BOOKMARKS="$(__call_navigate bookmark completions)" COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD)) fi