summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-12-20 21:42:09 +0100
committerAlan Pearce2018-12-20 21:42:09 +0100
commit2a6df359f7a040b5c641e5df7be9c32caf68be2d (patch)
treed3478e3b2c8fe49454283f3941556a3572735b30
parent7f2472e8035d8dbaa7c7d506f0d7c1fd58c30682 (diff)
downloadnixfiles-2a6df359f7a040b5c641e5df7be9c32caf68be2d.tar.lz
nixfiles-2a6df359f7a040b5c641e5df7be9c32caf68be2d.tar.zst
nixfiles-2a6df359f7a040b5c641e5df7be9c32caf68be2d.zip
zsh: Remove ssh agent setup
To be handled by the OS
-rw-r--r--zsh/.config/zsh/.zshrc16
1 files changed, 0 insertions, 16 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index db108ef3..c0124b2f 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -117,22 +117,6 @@ bindkey '\e ' hist-complete
 zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:|=*'
 zstyle ':completion:*' completer _expand _complete _match
 
-if [[ $os != "darwin" && -n $commands[gpg-connect-agent] ]]
-then
-  # When using SSH support, use the current TTY for passphrase prompts
-  gpg-connect-agent updatestartuptty /bye > /dev/null
-
-  # Point the SSH_AUTH_SOCK to the one handled by gpg-agent
-  if [ -S $(gpgconf --list-dirs agent-ssh-socket) ]; then
-    export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
-  else
-    echo "$(gpgconf --list-dirs agent-ssh-socket) doesn't exist. Is gpg-agent running ?"
-  fi
-elif [[ -z "$SSH_AUTH_SOCK" && -n $commands[ssh-agent] ]]
-then
-  eval $(ssh-agent)
-fi
-
 # Plugins
 
 zplugin ice blockf wait'0' lucid