Revert "Add command duration to powerline theme"

This reverts commit 384b31da98.
pull/1683/head
BarbUk 2020-11-23 10:27:41 +04:00
parent 384b31da98
commit a44b65f1b3
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
2 changed files with 1 additions and 9 deletions

View File

@ -235,16 +235,10 @@ function __powerline_last_status_prompt {
[[ "$1" -ne 0 ]] && echo "${1}|${LAST_STATUS_THEME_PROMPT_COLOR}"
}
function __powerline_duration_prompt {
[[ ${#command_duration} -gt 0 ]] && echo "${command_duration}|${LAST_STATUS_THEME_PROMPT_COLOR}"
}
function __powerline_prompt_command {
local last_status="$?" ## always the first
local separator_char="${POWERLINE_PROMPT_CHAR}"
command_duration=$(_command_duration)
LEFT_PROMPT=""
SEGMENTS_AT_LEFT=0
LAST_SEGMENT_COLOR=""

View File

@ -84,8 +84,6 @@ HISTORY_NUMBER_THEME_PROMPT_CHAR=${POWERLINE_HISTORY_NUMBER_CHAR:="#"}
COMMAND_NUMBER_THEME_PROMPT_COLOR=${POWERLINE_COMMAND_NUMBER_COLOR:=0}
COMMAND_NUMBER_THEME_PROMPT_CHAR=${POWERLINE_COMMAND_NUMBER_CHAR:="#"}
COMMAND_DURATION_ICON=${POWERLINE_COMMAND_DURATION_ICON:-' '}
POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby node cwd duration"}
POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby node cwd"}
safe_append_prompt_command __powerline_prompt_command