diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index fe6461e..c5bb44f 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -46,7 +46,9 @@ fi [[ ! -e "$XDG_CONFIG_HOME/locale.conf" ]] || . "$XDG_CONFIG_HOME/locale.conf" # SSH -eval "$(ssh-agent)" >/dev/null +if (( $+commands[ssh-agent] )) && [[ ! $SSH_AGENT_PID ]]; then + eval "$(ssh-agent)" >/dev/null +fi # Editor if (( $+commands[nvim] )); then