From c9bdb47979c7962871cf820640604d32e83ba88d Mon Sep 17 00:00:00 2001 From: sev Date: Fri, 30 Aug 2024 06:24:58 -0500 Subject: [PATCH 1/1] zshenv: fix fallback tmpdir substitution --- etc/zsh/.zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.47.0