theme/powerline-base: allow `$POWERLINE_PROMPT` as array
parent
1afbe31158
commit
c697ada0a5
|
|
@ -286,7 +286,8 @@ function __powerline_prompt_command() {
|
|||
fi
|
||||
|
||||
## left prompt ##
|
||||
for segment in ${POWERLINE_PROMPT-"user_info" "scm" "python_venv" "ruby" "node" "cwd"}; do
|
||||
# shellcheck disable=SC2068 # intended behavior
|
||||
for segment in ${POWERLINE_PROMPT[@]-"user_info" "scm" "python_venv" "ruby" "node" "cwd"}; do
|
||||
info="$("__powerline_${segment}_prompt")"
|
||||
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue