From 6af3dc7e4e13fc2af957cab2d29af8f0979886c8 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 18 Jan 2018 19:14:07 -0500 Subject: A better version of the status line for Linux --- tmux.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index 4ad2a66..d5381c7 100644 --- a/tmux.conf +++ b/tmux.conf @@ -31,15 +31,20 @@ bind-key M-l select-pane -R # Reload configuration -bind-key M-r source ~/.tmux.conf +bind-key r source ~/.tmux.conf # Respawn the pane ( Useful with certain -bind-key M-M-r respawn-pane +bind-key M-r respawn-pane # Change the status line a little bit, most are close to defaults set -g status-left-length 16 set -g status-left "[#S] " -set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h " +# Old status line, doesn't quite work right all the time +# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h " +# Who knew I'd be embedding such a horrible abomination into a tmux configuration file? +set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime -p | awk 'BEGIN {OFS=\",\";} {print $1, $2, $3}' | sed -re's/^up,([0-9]+),([hmrsdwy]).*$/up:\\1\\2/g' ) " +# TODO: show what it will look like for *BSD systems: + set -g status-right-length 40 set -g window-status-format "#I:#W#F" -- cgit v1.2.3