diff options
author | Alan Pearce | 2015-06-14 13:04:37 +0200 |
---|---|---|
committer | Alan Pearce | 2015-06-14 13:04:37 +0200 |
commit | 0f6186dfd2369dd8df402736ea2e53f88961c24c (patch) | |
tree | eceb3400ce1c1f459435a7f4d40b189e15ffd478 /tag-zsh/config/zsh/zshrc | |
parent | 72955df98c117aa5d86dbd44ce196d213e56810f (diff) | |
download | dotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.tar.lz dotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.tar.zst dotfiles-0f6186dfd2369dd8df402736ea2e53f88961c24c.zip |
zsh: Alias gpg when gpg2 is installed
Diffstat (limited to 'tag-zsh/config/zsh/zshrc')
-rwxr-xr-x | tag-zsh/config/zsh/zshrc | 5 |
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 " |