From d7faaf0474c56c9cb133a93b3725663eaaff71bc Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 20 Jul 2015 10:34:35 +0200 Subject: [PATCH] Add "gnupg" plugin --- plugins/gnupg/gnupg.zshrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/gnupg/gnupg.zshrc diff --git a/plugins/gnupg/gnupg.zshrc b/plugins/gnupg/gnupg.zshrc new file mode 100644 index 0000000..e1b008a --- /dev/null +++ b/plugins/gnupg/gnupg.zshrc @@ -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 -- 2.39.2