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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue