|
|
@ -14,6 +14,8 @@ if (( OPTIND <= ARGC )); then
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(( $+terminfo[smcup] && $+terminfo[rmcup] )) && echoti smcup
|
|
|
|
|
|
|
|
|
|
|
|
local -ri force
|
|
|
|
local -ri force
|
|
|
|
|
|
|
|
|
|
|
|
local -r font_base_url='https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts'
|
|
|
|
local -r font_base_url='https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts'
|
|
|
@ -200,9 +202,14 @@ function clear() {
|
|
|
|
function quit() {
|
|
|
|
function quit() {
|
|
|
|
if [[ $1 == '-c' ]]; then
|
|
|
|
if [[ $1 == '-c' ]]; then
|
|
|
|
print -P ""
|
|
|
|
print -P ""
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if (( $+terminfo[smcup] && $+terminfo[rmcup] )); then
|
|
|
|
|
|
|
|
echoti rmcup
|
|
|
|
|
|
|
|
print
|
|
|
|
else
|
|
|
|
else
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if (( force )); then
|
|
|
|
if (( force )); then
|
|
|
|
print -P "Powerlevel10k configuration wizard has been aborted. To run it again, type:"
|
|
|
|
print -P "Powerlevel10k configuration wizard has been aborted. To run it again, type:"
|
|
|
|
print -P ""
|
|
|
|
print -P ""
|
|
|
@ -1632,8 +1639,8 @@ function ask_config_overwrite() {
|
|
|
|
q) quit;;
|
|
|
|
q) quit;;
|
|
|
|
r) return 1;;
|
|
|
|
r) return 1;;
|
|
|
|
y)
|
|
|
|
y)
|
|
|
|
config_backup="$(mktemp ${TMPDIR:-/tmp}/$__p9k_cfg_basename.XXXXXXXXXX)" || exit 1
|
|
|
|
config_backup="$(mktemp ${TMPDIR:-/tmp}/$__p9k_cfg_basename.XXXXXXXXXX)" || quit -c
|
|
|
|
cp $__p9k_cfg_path $config_backup || exit 1
|
|
|
|
cp $__p9k_cfg_path $config_backup || quit -c
|
|
|
|
config_backup_u=${${TMPDIR:+\$TMPDIR}:-/tmp}/${(q-)config_backup:t}
|
|
|
|
config_backup_u=${${TMPDIR:+\$TMPDIR}:-/tmp}/${(q-)config_backup:t}
|
|
|
|
break
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
;;
|
|
|
@ -2162,7 +2169,12 @@ while true; do
|
|
|
|
break
|
|
|
|
break
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (( $+terminfo[smcup] && $+terminfo[rmcup] )); then
|
|
|
|
|
|
|
|
echoti rmcup
|
|
|
|
|
|
|
|
print
|
|
|
|
|
|
|
|
else
|
|
|
|
clear
|
|
|
|
clear
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
flowing +c New config: "%B${__p9k_cfg_path_u//\\/\\\\}%b."
|
|
|
|
flowing +c New config: "%B${__p9k_cfg_path_u//\\/\\\\}%b."
|
|
|
|
if [[ -n $config_backup ]]; then
|
|
|
|
if [[ -n $config_backup ]]; then
|
|
|
|