From 54a444535a6a2e7e6294f900fd11752ff13595bb Mon Sep 17 00:00:00 2001 From: Ben Hilburn Date: Tue, 18 Apr 2017 17:59:39 -0400 Subject: [PATCH] Converting timer start time to hex --- functions/utilities.zsh | 2 +- powerlevel9k.zsh-theme | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 8f676caf..86e5ba0e 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -79,7 +79,7 @@ function getRelevantItem() { done } -# OS detection for the `os_icon` segment +# OS detection case $(uname) in Darwin) OS='OSX' diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 5f12c129..f0b06cc4 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1290,8 +1290,7 @@ powerlevel9k_prepare_prompts() { _P9K_COMMAND_DURATION=$((EPOCHREALTIME - _P9K_TIMER_START)) # Reset start time - # Maximum integer on 32-bit CPUs - _P9K_TIMER_START=2147483647 + _P9K_TIMER_START=0xFFFFFFFF if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then PROMPT="$(print_icon 'MULTILINE_FIRST_PROMPT_PREFIX')%f%b%k$(build_left_prompt)