ZSH: Updated config

This commit is contained in:
2026-02-12 22:19:51 +01:00
parent 1d663f2a60
commit c813e48c26
13 changed files with 31 additions and 36 deletions

View File

@@ -20,11 +20,11 @@ if [[ "$OSTYPE" == darwin* ]]; then
else
# Linux/BSD: Start ssh-agent if not running
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "$HOME/.ssh-agent.env"
( umask 077; ssh-agent -t 1h > "$HOME/.ssh-agent.env" )
fi
# Source ssh-agent environment
if [[ ! -S ~/.ssh/ssh_auth_sock && -f "$HOME/.ssh-agent.env" ]]; then
if [[ ! -S "$SSH_AUTH_SOCK" && -f "$HOME/.ssh-agent.env" ]]; then
source "$HOME/.ssh-agent.env" >/dev/null
fi