summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 21:16:09 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-12-09 21:16:09 -0500
commita74a51b84b1a36a5021531403778bf1be2125676 (patch)
tree5e85d7e602835df227611d53a3b2663dae76003e /.profile
parentf907157f21addf81c052904287d45ebcd45e3004 (diff)
quick fixes
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