This modification to the tmux powerline binding allows the user to
easily identify when the prefix has been sent. When the prefix has
been sent, the session block changes from white to blue (matching the
color of the active window). This is accomplished using the conditional
functionality of tmux format strings and the 'client_prefix' format
variable. Unfortunately, the tmux parser fails to properly parse out
comma-separated format strings inside a format conditional, so those
have been split out into individual segments as well. Attempting to
re-combine the formats inside the conditionals will break this feature.
Reason: tmux may be launched and $TMUX set, but current shell still not under
tmux (and most likely there are no active session). In this case `tmux refresh
-S` may fail with “no clients” message, which is annoying.
It seems that old fix for old code is no longer needed. At least I do not see
any problems with
vim -u NONE -S ~/.vam/powerline/powerline/bindings/vim/plugin/powerline.vim --cmd 'set ls=2'
.
Fixes#250
Reason: $? may be overridden by the previous commands in PROMPT_COMMAND that do
not keep it like _powerline_prompt does (see `return $last_exit_code`).
(@ascrane)
Closes#836
Reason: otherwise it is likely that two updating processes are being run
simultaneously. With the current code it is not impossible as well, but less
likely.
Note: to make prompt fancy enough powerline-daemon should be used. Otherwise
continuation prompt length is different from what was expected:
With daemon:
user > env > path > if true ; then
then > fi
Without:
user > env > path > if true ; then
then > fi
Fixes#771 as I do not want to touch tcsh any longer