From 9ac95fc4bbdb4ff08408f4c4aae12fa09749cb21 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 21 Dec 2016 18:16:33 +0100 Subject: Export XDG_RUNTIME_DIR to /run/user/uid if exists and owned by user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- zsh/zprofile | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-70-g09d2