Comment out gpg agent.
This commit is contained in:
@@ -137,17 +137,17 @@ fi
|
|||||||
|
|
||||||
# Set GPG TTY
|
# Set GPG TTY
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
# Refresh gpg-agent tty in case user switches into an X session
|
## Refresh gpg-agent tty in case user switches into an X session
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
#gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||||
# Set SSH to use gpg-agent
|
## Set SSH to use gpg-agent
|
||||||
unset SSH_AGENT_PID
|
#unset SSH_AGENT_PID
|
||||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
#if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
fi
|
#fi
|
||||||
# Start the gpg-agent if not already running
|
## Start the gpg-agent if not already running
|
||||||
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
|
#if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
|
||||||
gpg-connect-agent /bye >/dev/null 2>&1
|
# gpg-connect-agent /bye >/dev/null 2>&1
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user