From 0f6186dfd2369dd8df402736ea2e53f88961c24c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 14 Jun 2015 13:04:37 +0200 Subject: zsh: Alias gpg when gpg2 is installed --- tag-zsh/config/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tag-zsh/config/zsh') 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 " -- cgit 1.4.1