From 018bce7ad550fa1de8b131500c7e1d360a32b0e8 Mon Sep 17 00:00:00 2001 From: PabloLec Date: Mon, 7 Jun 2021 11:42:47 +0200 Subject: [PATCH] Fix ZSH autocompletion --- scripts/cheat.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/cheat.zsh b/scripts/cheat.zsh index c65987d..befe1b2 100755 --- a/scripts/cheat.zsh +++ b/scripts/cheat.zsh @@ -40,8 +40,7 @@ _cheat() { '(-t --tag)'{-t,--tag}'[Return only sheets matching ]: :->taglist' \ '(-T --tags)'{-T,--tags}'[List all tags in use]: :->none' \ '(-v --version)'{-v,--version}'[Print the version number]: :->none' \ - '(--rm)--rm[Remove (delete) ]: :->personal' \ - '(-)*: :->full' + '(--rm)--rm[Remove (delete) ]: :->personal' case $state in (none) @@ -63,4 +62,4 @@ _cheat() { esac } -_cheat +compdef _cheat cheat