summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile6
1 files changed, 6 insertions, 0 deletions
diff --git a/.profile b/.profile
index 6123bc4..4f6edba 100644
--- a/.profile
+++ b/.profile
@@ -21,6 +21,7 @@ export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export R_PROFILE_USER=$HOME/.config/R/Rprofile
export ZDOTDIR=$HOME/.config/zsh
+export TEXMFHOME=$XDG_DATA_HOME/texmf
# Applications
export EDITOR=$(which nvim)
@@ -43,6 +44,11 @@ export LESS_TERMCAP_ue=$'\e[0m' # end underline
shortcutgen
aliasgen
+# Ensure XDG_RUNTIME_DIR is set
+if test -z "$XDG_RUNTIME_DIR"; then
+ export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
+fi
+
# Start Desktop Environment if on the main TTY
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx