Add completion for restic

This commit is contained in:
Diego Schulz 2019-03-11 00:45:33 -03:00 committed by GitHub
parent cf565254e2
commit 6800f6ee78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
src/_restic Normal file
View File

@ -0,0 +1,31 @@
#compdef restic
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for restic (https://restic.net).
#
# This file was generated by restic
#
# restic generate --zsh-completion _restic
#
# ------------------------------------------------------------------------------
_arguments \
'1: :->level1' \
'2: :_files'
case $state in
level1)
case $words[1] in
restic)
_arguments '1: :(backup cache cat check diff dump find forget generate help init key list ls migrate mount options prune rebuild-index recover restore self-update snapshots stats tag unlock version)'
;;
*)
_arguments '*: :_files'
;;
esac
;;
*)
_arguments '*: :_files'
;;
esac