SSH alias with /dev/null hosts file

This commit is contained in:
Jeremy Gardais 2019-12-05 21:29:16 +01:00
parent d028c01296
commit 3d823c57e0
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 0 deletions

3
zshrc
View File

@ -316,6 +316,9 @@ alias ssh="[[ ! -f ~/.keychain/$HOST-sh ]] && keychain --agents ssh id_rsa; sour
# 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 "
# ssh
alias sshdev='ssh -o UserKnownHostsFile=/dev/null'
# systemd
alias sctl="systemctl"
alias jctl="journalctl"