theme/powerline-base: allow `$POWERLINE_PROMPT` as array
parent
2d70569c73
commit
b96098fdbf
|
|
@ -286,7 +286,8 @@ function __powerline_prompt_command() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## left prompt ##
|
## 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")"
|
info="$("__powerline_${segment}_prompt")"
|
||||||
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
|
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue