From 496de37bb9dccfcd8c12f618ebf72dc4408c14a5 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 8 Mar 2021 22:19:27 -0600 Subject: [PATCH] zshenv: don't create redundant var --- base/.zshenv | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/.zshenv b/base/.zshenv index 7e0680c..2660783 100644 --- a/base/.zshenv +++ b/base/.zshenv @@ -40,16 +40,15 @@ if [[ -v _sev_reset_shell || $SHLVL == 1 ]] { ## create tmp link t=${TMPDIR:-/tmp}/home-$LOGNAME - h=$HOME/tmp if [[ ! -e $t ]] { mkdir -m 700 $t >/dev/null 2>&1 # TODO: check if dir exists after mkdir } # allow opaque entries to override link creation - if [[ ! -e $h ]] { - ln -sf $t $h >/dev/null 2>&1 + if [[ ! -e $XDG_RUNTIME_DIR ]] { + ln -sf $t $XDG_RUNTIME_DIR >/dev/null 2>&1 } - unset t h + unset t ## ssh agents # NOTE: preferred order of agents to check: okcagent, gnupg, openssh -- 2.48.1