Compare commits

..

No commits in common. "b97926675aba2d8465325d786cc69de9d9fdec84" and "efc9ddd9b615a0042b5bcc36f97f070ca6fdf09e" have entirely different histories.

1 changed files with 2 additions and 9 deletions

View File

@ -3527,9 +3527,7 @@ _p9k_prompt_time_compute() {
}
_p9k_prompt_time_async() {
zmodload zsh/mathfunc zsh/zselect || return
local -F t=_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC
zselect -t $((int(ceil(100 * (t - EPOCHREALTIME % t))))) || true
sleep 1 || true
}
_p9k_prompt_time_sync() {
@ -7811,13 +7809,8 @@ _p9k_init_params() {
# commands will contain the start times of their commands as opposed to the default
# behavior where they contain the end times of their preceding commands.
_p9k_declare -b POWERLEVEL9K_TIME_UPDATE_ON_COMMAND 0
# If set to true, time will update every
# POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC seconds.
# If set to true, time will update every second.
_p9k_declare -b POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME 0
_p9k_declare -F POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC 1
if (( _POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC <= 0 )); then
_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC=1
fi
_p9k_declare -b POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH 0
typeset -g _p9k_nix_shell_cond='${IN_NIX_SHELL:#0}'