Skip to content

tmux Segment

Description

This segment inform me when I am in tmux of the form session_name:pane_name.

This segment is because I do no usually look at the bottom of my terminal which usually is fullscreen on a 24" monitor to know if I'm in tmux or not.

This segment is only shown when global shell environment variable TMUX exists and is not empty.

Requirements

Obviously, this segment requires tmux to be installed.

Variables

Variables Default Description
TMUX_CHAR Character to show before the segment content
TMUX_FG white Foreground color of segment
TMUX_BG black Background color of segment, only used by v2

Examples

Prompt v1 Prompt v2
Full Version
tmux v1 full
tmux v2 full
Maximum Short Version
tmux v1 short
tmux v2 short


Last update: December 2, 2021
Back to top