Browse Source

feat: only run gpg ssh init on systems where it is present

master
xenua 3 years ago
parent
commit
050492f185
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 8
      runcoms/zshrc

8
runcoms/zshrc

@ -11,9 +11,11 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then @@ -11,9 +11,11 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
fi
# Customize to your needs...
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye > /dev/null
if type gpg-connect-agent > /dev/null; then
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye > /dev/null
fi
function mkcd() { mkdir $1 && cd $1 };

Loading…
Cancel
Save