1
0
mirror of https://github.com/restic/restic.git synced 2024-07-01 08:30:53 +02:00
restic/doc/zsh-completion.zsh

21 lines
412 B
Bash
Raw Normal View History

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