This commit is contained in:
ry
2022-01-13 12:10:39 -08:00
parent 9ea7094c9e
commit bf62fee111
4 changed files with 33 additions and 33 deletions

View File

@@ -20,10 +20,10 @@ FUNCTION_LOCATION="$XDG_CONFIG_HOME/zsh/zsh_functions"
. $ALIAS_LOCATION
. $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
# ## 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