Move ssh-agent configs around

This commit is contained in:
Ben Kreeger 2025-07-09 11:06:36 -05:00
parent 9077461ea8
commit bb0cdc7969
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
3 changed files with 6 additions and 4 deletions

View File

@ -1 +1,3 @@
alias ll="ls -Flah --color=always"
eval `ssh-agent -s`
ssh-add -L

View File

@ -4,6 +4,4 @@ alias rsyncdir="rsync -az --progress"
# Need to check what happens if this is not installed
CERT_PATH=$(python -m certifi)
export SSL_CERT_FILE=${CERT_PATH}
export REQUESTS_CA_BUNDLE=${CERT_PATH}
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
export REQUESTS_CA_BUNDL=${CERT_PATH}

View File

@ -3,8 +3,10 @@
SCRIPTPATH=$HOME/.config/dotfiles/zsh
ZSH_CACHE_DIR="$HOME/.cache/zsh"
# Let GPG know which tty we're using
# Let GPG know which tty we're using and put in charge of SSH auth
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
# google cloud sdk
if [[ -a "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" ]]; then