]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "gnupg" plugin
authorAlexander Barton <alexander.barton@tomas-daily.de>
Mon, 20 Jul 2015 08:34:35 +0000 (10:34 +0200)
committerAlexander Barton <alexander.barton@tomas-daily.de>
Mon, 20 Jul 2015 08:34:35 +0000 (10:34 +0200)
plugins/gnupg/gnupg.zshrc [new file with mode: 0644]

diff --git a/plugins/gnupg/gnupg.zshrc b/plugins/gnupg/gnupg.zshrc
new file mode 100644 (file)
index 0000000..e1b008a
--- /dev/null
@@ -0,0 +1,12 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# gnupg.zshrc: Setup GnuPG
+
+if (( $+commands[gpg2] )); then
+       # Use the gpg completions for gpg2, too
+       compdef gpg2=gpg
+
+       if ! (( $+commands[gpg])); then
+               # gpg2 is available, but no gpg: alias it!
+               alias "gpg"="gpg2"
+       fi
+fi