Update docs and add an option for graphical login

This commit is contained in:
2024-01-12 15:05:09 -08:00
parent a17ad2dc3c
commit 0351cace86
4 changed files with 47 additions and 12 deletions

View File

@ -10,7 +10,8 @@ add_ssh_keys() {
}
# Because I use zsh to start graphical sessions
if [[ -o login ]]; then
[[ -v ZSH_GRAPHICAL_LOGIN ]] || ZSH_GRAPHICAL_LOGIN=true
if [[ -o login ]] && [[ "${ZSH_GRAPHICAL_LOGIN}" = 'true' ]] ; then
export LC_ALL=en_US.UTF-8
eval "$(gnome-keyring-daemon --start 2>/dev/null)"
export SSH_AUTH_SOCK