Modified _lp_reset_runtime
This commit is contained in:
parent
65c428525d
commit
2ecab18181
@ -1351,7 +1351,10 @@ fi
|
||||
|
||||
_lp_reset_runtime()
|
||||
{
|
||||
if $_LP_SHELL_bash; then
|
||||
if $_LP_SHELL_zsh; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Compute number of seconds since program was started
|
||||
_LP_RUNTIME_SECONDS=$((SECONDS - _LP_RUNTIME_LAST_SECONDS))
|
||||
|
||||
@ -1362,7 +1365,6 @@ _lp_reset_runtime()
|
||||
# A proper command has been executed if the last command was not related to Liquid Prompt
|
||||
[ "$BASH_COMMAND" = _lp_set_prompt ]
|
||||
_LP_RUNTIME_COMMAND_EXECUTED=$?
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$LP_ENABLE_RUNTIME" = 1 ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user