Only set SSH_AUTH_SOCK if not logging in over SSH
This commit is contained in:
parent
d178b3bb8b
commit
fd934cbff3
|
@ -34,10 +34,14 @@ export DOTREPO="$HOME/git/dotfiles"
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export PAGER="nvimpager -p"
|
export PAGER="nvimpager -p"
|
||||||
|
|
||||||
# use gpg for ssh
|
# Use GPG for SSH authentication
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
||||||
gpgconf --launch gpg-agent
|
# set SSH_AUTH_SOCK if not logging in over SSH
|
||||||
|
if [ "$SSH_CONNECTION" != "" ]; then
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
gpgconf --launch gpg-agent
|
||||||
|
fi
|
||||||
|
|
||||||
# tehfuk
|
# tehfuk
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
|
|
Loading…
Reference in a new issue