2017-09-05 11:28:15 -04:00
|
|
|
#-*- mode: sh; -*-
|
|
|
|
|
2019-12-25 21:27:17 -05:00
|
|
|
# Define Zim location
|
|
|
|
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
|
|
|
|
|
2017-09-05 11:28:15 -04:00
|
|
|
# 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
|
|
|
|
|
2017-09-05 11:28:15 -04:00
|
|
|
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
|
|
|
|
2024-09-26 12:23:49 -04:00
|
|
|
export GTK_THEME=Arc-Dark-solid
|
2017-09-05 11:28:15 -04:00
|
|
|
export QT_STYLE_OVERRIDE=gtk2
|
2024-09-26 03:00:40 -04:00
|
|
|
export QT_QPA_PLATFORMTHEME=qt6gtk2
|
2018-01-10 12:45:02 -05:00
|
|
|
export QT_AUTO_SCREEN_SCALE_FACTOR=true
|
2017-09-05 11:28:15 -04:00
|
|
|
export CALIBRE_USE_SYSTEM_THEME=true
|
|
|
|
|
2019-12-25 21:27:17 -05:00
|
|
|
export WINEDLLOVERRIDES=winemenubuilder.exe=d
|
2017-09-05 11:28:15 -04:00
|
|
|
|
2022-02-12 23:14:58 -05:00
|
|
|
# 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
|
|
|
|
2017-09-05 11:28:15 -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
|
2023-08-11 17:08:08 -04:00
|
|
|
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
|