Merge pull request #77 from jkoelndorfer/left-prompt-retval

Set RETVAL for left prompt also.
pull/22/head
Ben Hilburn 9 years ago
commit 1a1cb8fdd2

@ -589,6 +589,8 @@ prompt_virtualenv() {
# Main prompt # Main prompt
build_left_prompt() { build_left_prompt() {
RETVAL=$?
if [[ "${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS}" == 0 ]]; then if [[ "${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS}" == 0 ]]; then
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs) POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs)
fi fi

Loading…
Cancel
Save