summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2017-02-14 03:24:32 +0300
committerDominik Ritter <dritter03@googlemail.com>2017-02-14 03:24:32 +0300
commit0461b56f2aa8ffaa1f06c1f33bbe756e15a28eb1 (patch)
treea54e71d921bb81a2f65c29692396eab9a8d7300e /powerlevel9k.zsh-theme
parente105118f398748738849daabc800cc890323a542 (diff)
Fix wrong variable name
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0bcc6d97..69bad29f 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -564,7 +564,7 @@ prompt_custom() {
prompt_command_execution_time() {
set_default POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD 3
- local duration=$_P9K_DURATION_TIME
+ local duration=$_P9K_COMMAND_DURATION
[[ $_P9K_COMMAND_DURATION -gt 60 ]] && duration=$(strftime '%M:%S' $_P9K_COMMAND_DURATION)
[[ $_P9K_COMMAND_DURATION -gt 3600 ]] && duration=$(strftime '%H:%M:%S' $_P9K_COMMAND_DURATION)