From: sev Date: Fri, 30 Aug 2024 11:24:58 +0000 (-0500) Subject: zshenv: fix fallback tmpdir substitution X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/c9bdb47979c7962871cf820640604d32e83ba88d zshenv: fix fallback tmpdir substitution --- diff --git a/etc/zsh/.zshenv b/etc/zsh/.zshenv index 69ac9bc..1ec57d7 100644 --- a/etc/zsh/.zshenv +++ b/etc/zsh/.zshenv @@ -168,7 +168,7 @@ if [[ ! -v _sev_tmp ]] { [[ -h $_sev_tmp && ! -d _sev_tmp ]] && unlink $_sev_tmp 2>/dev/null [[ ! -e $_sev_tmp ]] && mkdir -m700 $_sev_tmp 2>/dev/null if [[ ! -d $_sev_tmp ]] { - _sev_tmp=${$(mktemp 2>/dev/null):/tmp} + _sev_tmp=${$(mktemp 2>/dev/null):-/tmp} [[ -o interactive ]] && print -P "%F{red}!!! Can't create tmp dir, using $_sev_tmp%f" }