Correct the export guards.
This commit is contained in:
parent
9e7ff8c226
commit
21fdef6f86
2 changed files with 4 additions and 4 deletions
4
.bashrc
4
.bashrc
|
@ -37,8 +37,8 @@ fi
|
|||
|
||||
# GPG Agent
|
||||
export GPG_TTY=$(tty)
|
||||
[ -f "/run/user/${UID}/gnupg/S.gpg-agent" ] && export GPG_AGENT_INFO="/run/user/${UID}/gnupg/S.gpg-agent"
|
||||
[ -f "/run/user/${UID}/gnupg/S.gpg-agent.ssh" ] && export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh"
|
||||
[ -S "/run/user/${UID}/gnupg/S.gpg-agent" ] && export GPG_AGENT_INFO="/run/user/${UID}/gnupg/S.gpg-agent"
|
||||
[ -S "/run/user/${UID}/gnupg/S.gpg-agent.ssh" ] && export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh"
|
||||
pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1 && export SSH_AGENT_PID=$(pgrep -x -u "${USER}" gpg-agent)
|
||||
|
||||
# Aliases
|
||||
|
|
4
.zshrc
4
.zshrc
|
@ -41,8 +41,8 @@ fi
|
|||
|
||||
# GPG Agent
|
||||
export GPG_TTY=$(tty)
|
||||
[ -f "/run/user/${UID}/gnupg/S.gpg-agent" ] && export GPG_AGENT_INFO="/run/user/${UID}/gnupg/S.gpg-agent"
|
||||
[ -f "/run/user/${UID}/gnupg/S.gpg-agent.ssh" ] && export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh"
|
||||
[ -S "/run/user/${UID}/gnupg/S.gpg-agent" ] && export GPG_AGENT_INFO="/run/user/${UID}/gnupg/S.gpg-agent"
|
||||
[ -S "/run/user/${UID}/gnupg/S.gpg-agent.ssh" ] && export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh"
|
||||
pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1 && export SSH_AGENT_PID=$(pgrep -x -u "${USER}" gpg-agent)
|
||||
|
||||
# Aliases
|
||||
|
|
Loading…
Reference in a new issue