# don't pollute my home please
export GOPATH=${XDG_DATA_HOME:-$HOME/.local/share}/go
export CARGO_HOME=${XDG_CACHE_HOME:-$HOME/.cache}/cargo
export GHCUP_USE_XDG_DIRS=1
export STACK_ROOT=${XDG_DATA_HOME:-$HOME/.local/share}/stack

export KREW_NO_UPGRADE_CHECK=1
export KREW_ROOT=${XDG_DATA_HOME:-$HOME/.local/share/krew}

export PATH=${KREW_ROOT:-$HOME/.krew}/bin:~/bin:~/.local/bin:$GOPATH/bin:~/.nix-profile/bin:$PATH
export EDITOR=nvim
export MANPAGER="nvim +Man!"

export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock

# make locales work in nix shell
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive

GPG_TTY=$(tty)
export GPG_TTY

export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
