summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2026-07-03 18:56:28 +0200
committerOliver Kiddle <opk@zsh.org>2026-07-03 18:56:28 +0200
commit9e26b0000df6f173d92872acadbad4da2f3f3124 (patch)
tree4844d240a3cb2d3108c78492f981c5ae7f1a2a77 /Completion/Unix/Command
parent54899: new namei completion (diff)
downloadzsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar.gz
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar.bz2
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar.lz
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar.xz
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.tar.zst
zsh-9e26b0000df6f173d92872acadbad4da2f3f3124.zip
unposted (c.f. 54878): import ZSH-licenced age completion from zsh-completions (by Hydrargyrum)
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_age24
1 files changed, 24 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_age b/Completion/Unix/Command/_age
new file mode 100644
index 000000000..487933d92
--- /dev/null
+++ b/Completion/Unix/Command/_age
@@ -0,0 +1,24 @@
+#compdef age age-keygen
+
+case $service in
+ age)
+ _arguments -S -A '-?*' \
+ '(- :)'{-h,--help}'[display usage information]' \
+ '!(-d --decrypt)'{-e,--encrypt} \
+ '(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[decrypt the input to the output]' \
+ '(-o --output)'{-o,--output=}'[write result to given file]:output file:_files' \
+ '(-a --armor -d --decrypt)'{-a,--armor}'[encrypt to PEM encoded format]' \
+ '(-p --passphrase -d --decrypt)'{-p,--passphrase}'[encrypt with passphrase]' \
+ '(-d --decrypt)'\*{-r,--recipient=}'[encrypt to specified recipient]:recipient' \
+ '(-d --decrypt)'\*{-R,--recipients-file=}'[encrypt to recipients listed in specified file]:recipients file:_files' \
+ \*{-i,--identity=}'[use given identify file]:identity:_files' \
+ ':input:_files'
+ ;;
+ age-keygen)
+ _arguments -S -A '-?*' \
+ '-pq[generate post-quantum hybrid ML-KEM-768 + X25519 key pair]' \
+ '(-o --output)'{-o,--output}'[write the result to the given file]:file:_files' \
+ '-y[convert an identity file to a recipients file]' \
+ ':input:_files'
+ ;;
+esac