Avoid infinite recursion in `POWERLINE_OLD_PROMPT_COMMAND`

Fixes #678
This commit is contained in:
Peter Fern 2013-10-15 21:21:12 +11:00
parent db80fc95ed
commit 1d385f875f
1 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,6 @@ _powerline_prompt() {
trap "_powerline_tmux_set_columns" SIGWINCH
_powerline_tmux_set_columns
[[ "$PROMPT_COMMAND" == "_powerline_prompt" ]] ||
[[ "$PROMPT_COMMAND" != "${PROMPT_COMMAND/_powerline_prompt/}" ]] ||
POWERLINE_OLD_PROMPT_COMMAND="$PROMPT_COMMAND"
export PROMPT_COMMAND="_powerline_prompt"