diff --git a/themes/powerline/powerline.base.bash b/themes/powerline/powerline.base.bash index 09f8c9b5..8c983a7b 100644 --- a/themes/powerline/powerline.base.bash +++ b/themes/powerline/powerline.base.bash @@ -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="" diff --git a/themes/powerline/powerline.theme.bash b/themes/powerline/powerline.theme.bash index 85aebb8f..d897c7c8 100644 --- a/themes/powerline/powerline.theme.bash +++ b/themes/powerline/powerline.theme.bash @@ -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