Update local/early-init.alexanders-portable.zsh

This commit is contained in:
Alexander Rosenberg 2023-09-29 03:26:53 -07:00
parent c1e3dc4b8f
commit b6f387bb53
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -14,12 +14,8 @@ add_ssh_keys() {
# Because I use zsh to start X11 # Because I use zsh to start X11
if [[ -o login ]]; then if [[ -o login ]]; then
export LC_ALL=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
eval "$(gnome-keyring-daemon --start 2>/dev/null)" eval "$(gnome-keyring-daemon --start 2>/dev/null)"
if ! [[ -v WAYLAND_DISPLAY ]] && [ "${XDG_VTNR}" -eq 1 ]; then
pkill ssh-agent
fi
eval "$(ssh-agent)"
SSH_ASKPASS_REQUIRE="force" SSH_ASKPASS="/usr/local/bin/ssh-askpass-cat.sh" add_ssh_keys & SSH_ASKPASS_REQUIRE="force" SSH_ASKPASS="/usr/local/bin/ssh-askpass-cat.sh" add_ssh_keys &
if ! [[ -v WAYLAND_DISPLAY ]] && [ "${XDG_VTNR}" -eq 1 ]; then if ! [[ -v WAYLAND_DISPLAY ]] && [ "${XDG_VTNR}" -eq 1 ]; then