aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorJohn Koelndorfer <jkoelndorfer@gmail.com>2015-08-20 18:17:54 +0300
committerJohn Koelndorfer <jkoelndorfer@gmail.com>2015-08-26 18:59:57 +0300
commit2eea3aec56f71231b0fe95e18e065021f1a8284b (patch)
treede1250a1be1af15527f030faa28a9ad06050e92a /powerlevel9k.zsh-theme
parent4e2b1137d4ad3a83664b4b24bc11936d65a6a744 (diff)
Set RETVAL for left prompt also.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme2
1 files changed, 2 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 1b52d038..88da86e2 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -589,6 +589,8 @@ prompt_virtualenv() {
# Main prompt
build_left_prompt() {
+ RETVAL=$?
+
if [[ "${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS}" == 0 ]]; then
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs)
fi