Only set SSH_AUTH_SOCK if not logging in over SSH
This commit is contained in:
parent
9115ab83d5
commit
9fef0b7ded
1 changed files with 7 additions and 3 deletions
|
@ -34,10 +34,14 @@ export DOTREPO="$HOME/git/dotfiles"
|
|||
export EDITOR=nvim
|
||||
export PAGER="nvimpager -p"
|
||||
|
||||
# use gpg for ssh
|
||||
# Use GPG for SSH authentication
|
||||
export GPG_TTY="$(tty)"
|
||||
|
||||
# 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
|
||||
eval $(thefuck --alias)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue