zsh/.zshenv

54 lines
1.1 KiB
Plaintext
Raw Normal View History

#-*- mode: sh; -*-
2019-12-25 21:27:17 -05:00
# Define Zim location
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Environment variables
2018-03-07 14:55:17 -05:00
export EDITOR="emacsclient -t"
2019-12-25 21:27:17 -05:00
export ALTERNATE_EDITOR=""
2018-03-07 14:55:17 -05:00
export VISUAL="emacsclient -c -n"
2019-12-25 21:27:17 -05:00
export PAGER=less
export TERMINAL=alacritty
export ARDUINO_DIR="/usr/share/arduino"
export ARDMK_DIR="$HOME/Programs/Arduino-Makefile"
export STEAMAPPS="$HOME/.local/share/Steam/steamapps/common"
2019-12-25 21:27:17 -05:00
export GTK_THEME=Arc-Dark-solid
export QT_STYLE_OVERRIDE=gtk2
2024-09-26 03:00:40 -04:00
export QT_QPA_PLATFORMTHEME=qt6gtk2
export QT_AUTO_SCREEN_SCALE_FACTOR=true
export CALIBRE_USE_SYSTEM_THEME=true
2019-12-25 21:27:17 -05:00
export WINEDLLOVERRIDES=winemenubuilder.exe=d
# Don't allow duplicate values in path
typeset -U path
2024-04-17 19:39:38 -04:00
path=(
$HOME/.bin
$HOME/.local/bin
$HOME/.dotfiles/
$HOME/.cargo/bin
$path
)
2018-10-05 14:27:31 -04: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
2023-06-22 23:15:17 -04:00
# Set SSH auth socket
unset SSH_AGENT_PID
if hash gpgconf 2>/dev/null && [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]]
then
2023-06-22 23:15:17 -04:00
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi