mirror of
https://github.com/cheat/cheat.git
synced 2024-12-22 04:35:06 +01:00
Fix ZSH autocompletion
This commit is contained in:
parent
17acefdd9b
commit
018bce7ad5
@ -40,8 +40,7 @@ _cheat() {
|
|||||||
'(-t --tag)'{-t,--tag}'[Return only sheets matching <tag>]: :->taglist' \
|
'(-t --tag)'{-t,--tag}'[Return only sheets matching <tag>]: :->taglist' \
|
||||||
'(-T --tags)'{-T,--tags}'[List all tags in use]: :->none' \
|
'(-T --tags)'{-T,--tags}'[List all tags in use]: :->none' \
|
||||||
'(-v --version)'{-v,--version}'[Print the version number]: :->none' \
|
'(-v --version)'{-v,--version}'[Print the version number]: :->none' \
|
||||||
'(--rm)--rm[Remove (delete) <sheet>]: :->personal' \
|
'(--rm)--rm[Remove (delete) <sheet>]: :->personal'
|
||||||
'(-)*: :->full'
|
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
(none)
|
(none)
|
||||||
@ -63,4 +62,4 @@ _cheat() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_cheat
|
compdef _cheat cheat
|
||||||
|
Loading…
Reference in New Issue
Block a user