Merge pull request #899 from ZyX-I/fix-tests

Set tmux PWD after PROMPT_COMMAND, do not require it at the start
This commit is contained in:
ZyX-I 2014-06-25 21:40:50 +04:00
commit eb44c61566
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ _powerline_init_tmux_support() {
return 0
}
fi
test "x$PROMPT_COMMAND" != "x${PROMPT_COMMAND%_powerline_tmux_set_pwd*}" ||
export PROMPT_COMMAND=$'_powerline_tmux_set_pwd\n'"${PROMPT_COMMAND}"
test "x$PROMPT_COMMAND" != "x${PROMPT_COMMAND/_powerline_tmux_set_pwd}" ||
export PROMPT_COMMAND="${PROMPT_COMMAND}"$'\n_powerline_tmux_set_pwd'
}
_run_powerline() {