Add a gpg alias to load keychain

This commit is contained in:
Jeremy Gardais 2015-12-18 10:51:20 +01:00
parent 08743601b0
commit 1ab9dc6ca7
1 changed files with 4 additions and 2 deletions

6
zshrc
View File

@ -252,9 +252,11 @@ alias ping6="ping6 -c 3"
## JOSM ## JOSM
alias josm="java -jar -Xmx2048M /opt/josm-tested.jar" alias josm="java -jar -Xmx2048M /opt/josm-tested.jar"
## SSH ## Keychain
# If keychain doesn't exist, load it then source the file-sh # For SSH: If keychain doesn't exist, load it then source the file-sh
alias ssh="[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_rsa; source ~/.keychain/$HOST-sh; ssh " alias ssh="[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_rsa; source ~/.keychain/$HOST-sh; ssh "
# For GPG: If keychain doesn't exist, load it then source the file-sh-gpg
alias gpg="[[ ! -f ~/.keychain/$HOST-sh-gpg ]] && keychain --noask --systemd --agents gpg; source ~/.keychain/$HOST-sh-gpg; gpg "
####################################### #######################################
#Ouverture d'un programme en fonction #Ouverture d'un programme en fonction