aboutsummaryrefslogtreecommitdiff
path: root/Common/zshrc
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2023-04-24 07:13:20 +0200
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2023-04-24 07:13:20 +0200
commitae56946206235b8b6f30a184d29a41cc5dcc39ca (patch)
tree52b3c2bb08ecaeaf50a750e6f07606e2022923c8 /Common/zshrc
parent763df8e9d428422d7db6fe157dd8f14656aba6e2 (diff)
downloaddotfiles-ae56946206235b8b6f30a184d29a41cc5dcc39ca.tar.gz
dotfiles-ae56946206235b8b6f30a184d29a41cc5dcc39ca.zip
Neovim things
Diffstat (limited to 'Common/zshrc')
-rw-r--r--Common/zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/Common/zshrc b/Common/zshrc
index beda6af..17ebc73 100644
--- a/Common/zshrc
+++ b/Common/zshrc
@@ -146,3 +146,9 @@ export EDITOR="vim"
export GIT_AUTHOR_NAME="jakob.stendahl"
export GIT_AUTHOR_EMAIL="jakob.stendahl@infomedia.dk"
+# start only one ssh-agent and reuse the created one
+# this is used for sway, althou keys added do not persist on reboot
+if ! pgrep -u "$USER" ssh-agent > /dev/null; then
+ ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
+fi
+source "$XDG_RUNTIME_DIR/ssh-agent.env" > /dev/null