Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux session not always have $TERM set to screen #563

Closed
liujoey opened this issue Feb 3, 2019 · 2 comments
Closed

tmux session not always have $TERM set to screen #563

liujoey opened this issue Feb 3, 2019 · 2 comments
Labels
TERM Related to terminal emulation detection or manipulation tmux Related to tmux specific implemetation
Milestone

Comments

@liujoey
Copy link

liujoey commented Feb 3, 2019

https://github.com/nojhan/liquidprompt/blob/6f5af893a3aba29d54005366ba88c3b10c72bcb6/liquidprompt#L584

I feel this line is not covering all cases. I set $TERM=tmux-256color when using TMUX and generate my own terminfo for it. Is there a better way to detect whether it is running inside a multiplexer?

@dolmen dolmen added TERM Related to terminal emulation detection or manipulation tmux Related to tmux specific implemetation labels Oct 16, 2019
@dolmen
Copy link
Collaborator

dolmen commented Oct 16, 2019

You're right. Checking -n "$TMUX" would be helpful here like I do in angel-PS1.

@Rycieos Rycieos added this to the v1.12 milestone Jul 5, 2020
@Rycieos Rycieos closed this as completed in dc3bd75 Jul 7, 2020
@Rycieos
Copy link
Collaborator

Rycieos commented Jul 7, 2020

Fixed on master and in v1.12-rc.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TERM Related to terminal emulation detection or manipulation tmux Related to tmux specific implemetation
Projects
None yet
Development

No branches or pull requests

3 participants