Add a gpg alias to load keychain
This commit is contained in:
parent
08743601b0
commit
1ab9dc6ca7
6
zshrc
6
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue