Files
dotfiles/.zshenv
druckdev 1c91a32ef9 Start gnome-keyring with window manager
Replace calling gnome-keyring-daemon in every zsh instance with just
sourcing the file the daemon returns on startup in i3.
TODO: Use pam for that
2020-06-27 08:20:48 +02:00

17 lines
422 B
Bash

## Author: druckdev
## Created: 2019-10-21
setopt NO_GLOBAL_RCS
if [ -n "$DESKTOP_SESSION" ] && [ -e /run/user/1000/keyring/ssh ]; then
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
fi
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
[ ! -r "$ZDOTDIR/.zshenv" ] || . "$ZDOTDIR/.zshenv"