summaryrefslogtreecommitdiffstats
path: root/zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
commita62114c91f2070c8c8453d117f3d81dc113e41ff (patch)
treef266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
parentaf120ab348f2e1a5a39dec035ed9dcf84189a64e (diff)
downloaddotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh')
-rw-r--r--zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh17
1 files changed, 0 insertions, 17 deletions
diff --git a/zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh b/zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
deleted file mode 100644
index 1f4be20..0000000
--- a/zsh/oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
+++ /dev/null
@@ -1,17 +0,0 @@
-export GPG_TTY=$TTY
-
-# Fix for passphrase prompt on the correct tty
-# See https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html#option-_002d_002denable_002dssh_002dsupport
-function _gpg-agent_update-tty_preexec {
- gpg-connect-agent updatestartuptty /bye &>/dev/null
-}
-autoload -U add-zsh-hook
-add-zsh-hook preexec _gpg-agent_update-tty_preexec
-
-# If enable-ssh-support is set, fix ssh agent integration
-if [[ $(gpgconf --list-options gpg-agent 2>/dev/null | awk -F: '$1=="enable-ssh-support" {print $10}') = 1 ]]; then
- unset SSH_AGENT_PID
- if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]]; then
- export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
- fi
-fi