diff --git a/zsh/linux.zsh b/zsh/linux.zsh index 93c8023..fb53bb1 100644 --- a/zsh/linux.zsh +++ b/zsh/linux.zsh @@ -1 +1,3 @@ alias ll="ls -Flah --color=always" +eval `ssh-agent -s` +ssh-add -L diff --git a/zsh/mac.zsh b/zsh/mac.zsh index 1475a83..0adb7ae 100644 --- a/zsh/mac.zsh +++ b/zsh/mac.zsh @@ -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} diff --git a/zsh/zprofile b/zsh/zprofile index 11f39ca..05c25dd 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -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