diff --git a/zshrc b/zshrc index f8a9dcc..7ca8fa3 100644 --- a/zshrc +++ b/zshrc @@ -252,9 +252,11 @@ alias ping6="ping6 -c 3" ## JOSM alias josm="java -jar -Xmx2048M /opt/josm-tested.jar" -## SSH -# If keychain doesn't exist, load it then source the file-sh +## Keychain +# 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 " +# 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