zsh/.zshenv

42 lines
1.0 KiB
Plaintext
Raw Normal View History

#-*- mode: sh; -*-
# Environment variables
export ARDUINO_DIR="/usr/share/arduino"
export ARDMK_DIR="$HOME/Programs/Arduino-Makefile"
export STEAMAPPS="$HOME/.local/share/Steam/steamapps/common"
2016-07-12 18:22:30 -04:00
export QT_STYLE_OVERRIDE=gtk2
export ALTERNATE_EDITOR=""
export TERMINAL=roxterm
2016-02-02 20:09:16 -05:00
2016-02-15 11:19:40 -05:00
export WORDCHARS=${WORDCHARS/\//}
export PAGER=less
2016-02-02 20:09:16 -05:00
# Set temporary files locations
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$LOGNAME"
mkdir -p -m 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"
if [[ ! -d "$TMPPREFIX" ]]; then
mkdir -p "$TMPPREFIX"
fi
# Gnupg setup
## Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
gpg-connect-agent /bye >/dev/null 2>&1
fi
## Set SSH to use gpg-agent
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
2016-07-23 14:45:46 -04:00
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
2016-02-02 20:09:16 -05:00
fi
## Set GPG TTY
GPG_TTY=$(tty)
export GPG_TTY
## Refresh gpg-agent tty in case user switches into an X session
gpg-connect-agent updatestartuptty /bye >/dev/null