aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zprofile')
-rw-r--r--zsh/zprofile3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index 88c1ee7..15636fd 100644
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -7,6 +7,9 @@ path=( "$HOME"/.local/bin
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_DATA_HOME="$HOME"/.local/share
+if [[ -z "$XDG_RUNTIME_DIR" ]] && [[ -d /run/user/"$UID" ]] && [[ -w /run/user/"$UID" ]]; then
+ export XDG_RUNTIME_DIR=/run/user/"$UID"
+fi
export HISTSIZE=500000
export SAVEHIST=600000