zsh-config/early-init.zsh

25 lines
775 B
Bash
Raw Normal View History

2023-09-15 14:55:47 -07:00
# Some extra environment variables
export PATH="${HOME}/.local/bin:${PATH}"
add_ssh_keys() {
pass show ssh/personal_gitea | ssh-add ~/.ssh/personal_gitea
pass show ssh/personal_server | ssh-add ~/.ssh/personal_server
pass show ssh/gandi_vps | ssh-add ~/.ssh/gandi_vps
pass show ssh/notabug | ssh-add ~/.ssh/notabug
pass show ssh/aur | ssh-add ~/.ssh/aur
}
2023-11-14 20:42:33 -08:00
# Because I use zsh to start graphical sessions
2023-09-15 14:55:47 -07:00
if [[ -o login ]]; then
export LC_ALL=en_US.UTF-8
eval "$(gnome-keyring-daemon --start 2>/dev/null)"
2023-09-29 12:59:28 -07:00
export SSH_AUTH_SOCK
2023-09-15 14:55:47 -07:00
SSH_ASKPASS_REQUIRE="force" \
SSH_ASKPASS="/usr/local/bin/ssh-askpass-cat.sh" \
add_ssh_keys &
2023-11-14 20:42:33 -08:00
if ! [[ -v WAYLAND_DISPLAY ]] && [ "${XDG_VTNR}" -eq 1 ]; then
exec Hyprland
2023-09-15 14:55:47 -07:00
fi
fi