theme/powerline-multiline: `shfmt`

pull/2051/head
John D Pell 2022-01-17 13:24:39 -08:00
parent b16d7efcf5
commit 6b02cd34b5
1 changed files with 83 additions and 79 deletions

View File

@ -1,11 +1,15 @@
. "$BASH_IT/themes/powerline/powerline.base.bash" # shellcheck shell=bash
# shellcheck disable=SC2034 # Expected behavior for themes.
# shellcheck source-path=SCRIPTDIR/../powerline
source "${BASH_IT?}/themes/powerline/powerline.base.bash"
function __powerline_last_status_prompt { function __powerline_last_status_prompt {
[[ "$1" -ne 0 ]] && echo "$(set_color ${LAST_STATUS_THEME_PROMPT_COLOR} -) ${1} ${normal}" [[ "$1" -ne 0 ]] && echo "$(set_color ${LAST_STATUS_THEME_PROMPT_COLOR} -) ${1} ${normal}"
} }
function __powerline_right_segment { function __powerline_right_segment {
local OLD_IFS="${IFS}"; IFS="|" local OLD_IFS="${IFS}"
IFS="|"
local params=($1) local params=($1)
IFS="${OLD_IFS}" IFS="${OLD_IFS}"
local padding=0 local padding=0