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
|
|
|
|
2017-09-05 11:28:15 -04:00
|
|
|
export QT_STYLE_OVERRIDE=gtk2
|
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
|
|
|
|
|
|
|
# Add $HOME/.bin to PATH if it exists and is not already in the path
|
|
|
|
if [[ -d "$HOME/.bin" ]] && ! grep -q ":$HOME"'/\.bin\(:\|$\)' <<< "$PATH"
|
|
|
|
then
|
|
|
|
export PATH="$PATH:$HOME/.bin"
|
|
|
|
fi
|
|
|
|
|
2018-10-05 14:27:31 -04:00
|
|
|
# Add $HOME/.dotfiles to PATH if it exists and is not already in the path
|
|
|
|
if [[ -d "$HOME/.dotfiles" ]] && ! grep -q ":$HOME"'/\.dotfiles\(:\|$\)' <<< "$PATH"
|
|
|
|
then
|
|
|
|
export PATH="$PATH:$HOME/.dotfiles"
|
|
|
|
fi
|
|
|
|
|
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
|