summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-06-14 13:04:37 +0200
committerAlan Pearce2015-06-14 13:04:37 +0200
commit0f6186dfd2369dd8df402736ea2e53f88961c24c (patch)
treeeceb3400ce1c1f459435a7f4d40b189e15ffd478
parent72955df98c117aa5d86dbd44ce196d213e56810f (diff)
downloaddotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.tar.lz
dotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.tar.zst
dotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.zip
zsh: Alias gpg when gpg2 is installed
-rwxr-xr-xtag-zsh/config/zsh/zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 9c9f36a..22c5458 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -258,6 +258,11 @@ alias lsr="${ls} -tld *(m-2)" # mtime < -2days
 alias sf="app/console"
 
 alias pping="prettyping.sh"
+if [[ -z $commands[gpg] && -s $commands[gpg2] ]]
+then
+	alias gpg=gpg2
+fi
+
 alias trans="transmission-remote transmission.home"
 alias bitcoin="bitcoind"
 alias su="smart_sudo "