summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-04 05:02:16 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-04 05:02:16 +0300
commitda8f412197cb5a6bcb41aa81ac2f6bc51bc039e7 (patch)
tree5e9adf8fa3c136462116f6c76d6d52dcbee20551 /powerlevel9k.zsh-theme
parent9e75070a887eb4edee1f08d70a36f9c214e2ad70 (diff)
use mkport in a portable way
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 8b1c2513..14b69f33 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -111,7 +111,7 @@ set_default POWERLEVEL9K_MAX_CACHE_SIZE 10000
# we use a temporary file to communicate with the parent shell and to ask it to
# change environment variables.
typeset -gAH _p9k_cache_data=()
-typeset -gH _P9K_CACHE_CHANNEL=${$(mktemp -u)%/*}/p9k_cache_channel.$$
+typeset -gH _P9K_CACHE_CHANNEL=$(mktemp -u "${TMPDIR:-/tmp}"/p9k_cache_channel.$$.XXXXXXXXXX)
# Note: Several performance-critical functions return results to the caller via global
# variable _P9K_RETVAL rather than stdout. This is faster.