1
Fork 0
nixos-system-config/dotfiles/zsh/conf.d/ssh.zsh
caem d8ce89bd77
Add the x220 host
I don't have the time to split this commit
2024-10-30 15:32:07 +01:00

13 lines
332 B
Bash
Executable file

#!/usr/bin/env zsh
if [ -z "$DESKTOP_SESSION" ]; then
if [ -n "$(command -v gnome-keyring-daemon)" ]; then
if [ -z "$(pidof gnome-keyring-daemon)" ]; then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi
else
{ eval $(ssh-agent -s); } > /dev/null 2>&1
fi
fi