From 33923323e1804bbf06269e3916ad2db0f622193d Mon Sep 17 00:00:00 2001 From: Enrico Lumetti Date: Thu, 5 Jan 2017 17:21:07 +0100 Subject: [PATCH] Don't change TMPDIR value In case TMPDIR is not specified, mktemp will use /tmp by default. --- runcoms/zprofile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runcoms/zprofile b/runcoms/zprofile index 052d5f98..05ed6bc2 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -66,8 +66,4 @@ fi # Temporary Files # -if [[ ! -d "$TMPDIR" ]]; then - export TMPDIR="$(mktemp -d)" -fi - -TMPPREFIX="${TMPDIR%/}/zsh" +TMPPREFIX="$(mktemp -d)/zsh"