|
|
@ -1565,7 +1565,10 @@ function ask_config_overwrite() {
|
|
|
|
local tmpdir=/tmp
|
|
|
|
local tmpdir=/tmp
|
|
|
|
local tmpdir_u=/tmp
|
|
|
|
local tmpdir_u=/tmp
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
config_backup="$(mktemp $tmpdir/$__p9k_cfg_basename.XXXXXXXXXX)" || quit -c
|
|
|
|
if (( ! $+commands[mktemp] )) ||
|
|
|
|
|
|
|
|
! config_backup=$(mktemp $tmpdir/$__p9k_cfg_basename.XXXXXXXXXX 2>/dev/null); then
|
|
|
|
|
|
|
|
config_backup=$tmpdir/$__p9k_cfg_basename.$EPOCHREALTIME
|
|
|
|
|
|
|
|
fi
|
|
|
|
cp $__p9k_cfg_path $config_backup || quit -c
|
|
|
|
cp $__p9k_cfg_path $config_backup || quit -c
|
|
|
|
config_backup_u=$tmpdir_u/${(q-)config_backup:t}
|
|
|
|
config_backup_u=$tmpdir_u/${(q-)config_backup:t}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
@ -2023,7 +2026,7 @@ else
|
|
|
|
_p9k_can_configure -q || return
|
|
|
|
_p9k_can_configure -q || return
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
zmodload zsh/terminfo || return
|
|
|
|
zmodload zsh/terminfo zsh/datetime || return
|
|
|
|
|
|
|
|
|
|
|
|
if [[ $ZSH_VERSION == (5.7.<1->*|5.<8->*|<6->.*) && $COLORTERM == (24bit|truecolor) ]]; then
|
|
|
|
if [[ $ZSH_VERSION == (5.7.<1->*|5.<8->*|<6->.*) && $COLORTERM == (24bit|truecolor) ]]; then
|
|
|
|
local -ir has_truecolor=1
|
|
|
|
local -ir has_truecolor=1
|
|
|
|