Skip to content

Commit

Permalink
Fix tmux reporting as screen
Browse files Browse the repository at this point in the history
I forgot that Tmux copies Screen and modifies $TERM, which means that
both would return from _lp_multiplexer() as "screen". Move the check for
Tmux first so that it takes precedence.
  • Loading branch information
Rycieos committed Nov 25, 2020
1 parent af8382b commit 230c9d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -868,12 +868,12 @@ _lp_chroot() {
}

_lp_multiplexer() {
if [[ "$TERM" == screen* ]]; then
lp_mulitplexer=screen
return 0
elif [[ -n ${TMUX-} ]]; then
if [[ -n ${TMUX-} ]]; then
lp_mulitplexer=tmux
return 0
elif [[ "$TERM" == screen* ]]; then
lp_mulitplexer=screen
return 0
fi
return 1
}
Expand Down

0 comments on commit 230c9d7

Please sign in to comment.