]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "ssh-pageant" plugin
authorAlexander Barton <alex@barton.de>
Tue, 15 Nov 2016 13:30:18 +0000 (14:30 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 15 Nov 2016 13:30:18 +0000 (14:30 +0100)
plugins/ssh-pageant/README.md [new file with mode: 0644]
plugins/ssh-pageant/ssh-pageant.zshrc [new file with mode: 0644]

diff --git a/plugins/ssh-pageant/README.md b/plugins/ssh-pageant/README.md
new file mode 100644 (file)
index 0000000..40aa61f
--- /dev/null
@@ -0,0 +1,3 @@
+## ssh-pageant.zshrc
+
+Integrate *ssh-pageant*, an SSH agent for Cygwin/MSYS to PuTTY's Pageant.
diff --git a/plugins/ssh-pageant/ssh-pageant.zshrc b/plugins/ssh-pageant/ssh-pageant.zshrc
new file mode 100644 (file)
index 0000000..d20c3c9
--- /dev/null
@@ -0,0 +1,8 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ssh-pageant.zshrc: Setup ssh-pageant
+
+# Make sure that "ssh-pageant(1)" is installed.
+(( $+commands[ssh-pageant] )) || return
+
+# Start up agent, reuse existing socket.
+eval $(/usr/bin/ssh-pageant -q -r -a /var/run/pageant-$LOGNAME.sock)