Merge remote-tracking branch 'zyx-i/record-last_exit_code' into develop

This commit is contained in:
Kim Silkebækken 2013-04-20 17:00:52 +02:00
commit 18a05b4445
1 changed files with 2 additions and 1 deletions

View File

@ -13,9 +13,10 @@ _powerline_tmux_set_columns() {
} }
_powerline_prompt() { _powerline_prompt() {
local last_exit_code=$?
[[ -z "$POWERLINE_OLD_PROMPT_COMMAND" ]] || [[ -z "$POWERLINE_OLD_PROMPT_COMMAND" ]] ||
eval $POWERLINE_OLD_PROMPT_COMMAND eval $POWERLINE_OLD_PROMPT_COMMAND
PS1="$(powerline shell left -r bash_prompt --last_exit_code=$?)" PS1="$(powerline shell left -r bash_prompt --last_exit_code=$last_exit_code)"
_powerline_tmux_set_pwd _powerline_tmux_set_pwd
} }