47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
#-*- mode: sh; -*-
|
|
|
|
# Define Zim location
|
|
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
|
|
|
|
# Environment variables
|
|
export EDITOR="emacsclient -t"
|
|
export ALTERNATE_EDITOR=""
|
|
export VISUAL="emacsclient -c -n"
|
|
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"
|
|
|
|
export QT_STYLE_OVERRIDE=gtk2
|
|
export QT_AUTO_SCREEN_SCALE_FACTOR=true
|
|
export CALIBRE_USE_SYSTEM_THEME=true
|
|
|
|
export WINEDLLOVERRIDES=winemenubuilder.exe=d
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# 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
|