aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-16 21:38:28 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-16 21:38:28 +0300
commit428665e55106c705866f9783db8090e14b6916ec (patch)
tree8da49b1c1afafcf567a11adaad437b80400d4c81
parentccfc462faf5656a41ad73e0b1624cb946967a0bd (diff)
silly typos
-rwxr-xr-xinternal/p10k.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 2db3f023..295cdccb 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -897,15 +897,15 @@ prompt_command_execution_time() {
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_DISABLE_FORMATTING == true ]]; then
local text=''
else
- if (( _P9K_COMMAND_DURATION < 60 )); then
+ if (( P9K_COMMAND_DURATION_SECONDS < 60 )); then
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; then
- local -i sec=$((_P9K_COMMAND_DURATION + 0.5))
+ local -i sec=$((P9K_COMMAND_DURATION_SECONDS + 0.5))
else
- local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=_P9K_COMMAND_DURATION
+ local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=P9K_COMMAND_DURATION_SECONDS
fi
local text=${sec}s
else
- local -i d=_P9K_COMMAND_DURATION
+ local -i d=$((P9K_COMMAND_DURATION_SECONDS + 0.5))
local text=${(l.2..0.)$((d % 60))}
if (( d >= 60 )); then
text=${(l.2..0.)$((d / 60 % 60))}:$text