Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Autohide host name if in tmux #2019
Comments
|
I was wondering the same thing today. See if this hack works for you. Tmux sets two environment variables inside the session: TMUX and TMUX_PANE. I used TMUX_PANE, but I think either would work. Powerline supports config overrides via environment variables. Taking advantage of TMUX_PANE, POWERLINE_CONFIG_OVERRIDES, and a custom shell theme (without the hostname segment), I was able to throw this in my .bashrc file:
Change 'tmux_default' to whatever you name your custom theme and put this section before your call to powerline-daemon. Might need to tweak it a bit if you're not using bash. |
|
@weavage Thanks for the solution! I guess it would work for me! Nevertheless I still hope that there's an option to enable this is the segment settings :) |
Is there any option to auto hide host name in shell within remote tmux session? I found it a little duplicate to show host name in both tmux status line and shell prompt. Thanks