From 058ab5d062f63a9c4a8d71c30eea6bda56952c4b Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 9 Aug 2018 23:32:34 +0200 Subject: [PATCH] add rm to completion --- completion/bash/memo.sh | 2 +- completion/zsh/_memo | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/completion/bash/memo.sh b/completion/bash/memo.sh index 7702050..360f375 100644 --- a/completion/bash/memo.sh +++ b/completion/bash/memo.sh @@ -4,7 +4,7 @@ _memo(){ local cur opt prev MEMO_FOLDER="${MEMO_DIR:-$HOME/memo}" - opts="add copy search show list" + opts="add rm copy search show list" COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" diff --git a/completion/zsh/_memo b/completion/zsh/_memo index 00e5b65..5cc918e 100755 --- a/completion/zsh/_memo +++ b/completion/zsh/_memo @@ -7,6 +7,7 @@ function _memo { _arguments \ "1:action:(( add\:'add a text to a topic' + rm\:'delete a topic folder with all its content' copy\:'copy a file to a topic' search\:'search for text in all topics' show\:'show a topic' @@ -17,7 +18,7 @@ function _memo { "*::arg:->args" case $line[1] in - add|copy|show|edit) + add|rm|copy|show|edit) _memo_topics ;; git)