From 14b473cb6e4f048830dd7b582491ff8a05fbd234 Mon Sep 17 00:00:00 2001 From: ry Date: Thu, 13 Jan 2022 10:58:25 -0800 Subject: [PATCH] added stuff --- .config/zsh/.zshrc | 8 ++++++++ desktop.org | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 8cb7771..3d88d8c 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -23,3 +23,11 @@ ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases" FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions" source $ALIAS_LOCATION source $FUNCTION_LOCATION + +## SSH Agent +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env" +fi +if [ ! "$SSH_AUTH_SOCK" ]; then + . "$XDG_RUNTIME_DIR/ssh-agent.env" > /dev/null +fi diff --git a/desktop.org b/desktop.org index 1d1662a..d647dae 100644 --- a/desktop.org +++ b/desktop.org @@ -650,6 +650,14 @@ ALIAS_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_aliases" FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions" source $ALIAS_LOCATION source $FUNCTION_LOCATION + +## SSH Agent +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env" +fi +if [ ! "$SSH_AUTH_SOCK" ]; then + . "$XDG_RUNTIME_DIR/ssh-agent.env" > /dev/null +fi #+end_src ** zsh_aliases