restic/doc/zsh-completion.zsh

21 lines
429 B
Bash
Raw Normal View History

2017-09-26 11:16:08 +00:00
#compdef restic
_arguments \
'1: :->level1' \
'2: :_files'
case $state in
level1)
case $words[1] in
restic)
2018-08-06 19:28:59 +00:00
_arguments '1: :(backup cache cat check diff dump find forget generate help init key list ls migrate mount options prune rebuild-index restore snapshots stats tag unlock version)'
2017-09-26 11:16:08 +00:00
;;
*)
_arguments '*: :_files'
;;
esac
;;
*)
_arguments '*: :_files'
;;
esac