summaryrefslogtreecommitdiff
path: root/dot_zsh/plugins/gnome-keyring-daemon
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-09-13 14:57:51 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2020-09-13 14:57:51 -0400
commitf261f4733526e981568c282266e0f343e9e6f678 (patch)
tree06c3c4a913cca37a0b077165e426c5ad348be701 /dot_zsh/plugins/gnome-keyring-daemon
parentzsh: systemd ignores $LESS, set $SYSTEMD_LESS (diff)
add gnome-keyring-daemon (ssh) plugin
Diffstat (limited to 'dot_zsh/plugins/gnome-keyring-daemon')
-rw-r--r--dot_zsh/plugins/gnome-keyring-daemon5
1 files changed, 5 insertions, 0 deletions
diff --git a/dot_zsh/plugins/gnome-keyring-daemon b/dot_zsh/plugins/gnome-keyring-daemon
new file mode 100644
index 0000000..e9c35c2
--- /dev/null
+++ b/dot_zsh/plugins/gnome-keyring-daemon
@@ -0,0 +1,5 @@
+#!/bin/zsh
+(( $+commands[gnome-keyring-daemon] )) || return
+if [[ -z $SSH_AUTH_SOCK ]]; then
+ export $(gnome-keyring-daemon -s)
+fi