Added ssh-agent autostart

This commit is contained in:
Logan G 2020-02-26 17:31:21 -07:00
parent 4983d2fe85
commit 37a3b9896d

View file

@ -5,6 +5,12 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'