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)