From 6800f6ee781f1924cd995d3d8776f8da5e010cf4 Mon Sep 17 00:00:00 2001 From: Diego Schulz Date: Mon, 11 Mar 2019 00:45:33 -0300 Subject: [PATCH] Add completion for restic --- src/_restic | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/_restic diff --git a/src/_restic b/src/_restic new file mode 100644 index 0000000..9a8649e --- /dev/null +++ b/src/_restic @@ -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