mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-30 00:34:42 +00:00
use mkport in a portable way
This commit is contained in:
@@ -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
|
# we use a temporary file to communicate with the parent shell and to ask it to
|
||||||
# change environment variables.
|
# change environment variables.
|
||||||
typeset -gAH _p9k_cache_data=()
|
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
|
# Note: Several performance-critical functions return results to the caller via global
|
||||||
# variable _P9K_RETVAL rather than stdout. This is faster.
|
# variable _P9K_RETVAL rather than stdout. This is faster.
|
||||||
|
|||||||
Reference in New Issue
Block a user