From 5ea6e75a796633d32f2ddce373242c972c7b2e1d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 19 Jan 2018 01:27:21 -0500 Subject: Clena up tmux configuration and add a helper script. Tell mkshrc to pull the helper --- tmux.conf | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index 8ff225d..4a10676 100644 --- a/tmux.conf +++ b/tmux.conf @@ -39,12 +39,8 @@ 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] " -# 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' ) " -# If you're on a BSD system copy this line into your ~/.tmux.conf.local -# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\\1/g' -e's/^([^ ]+)[ ]*(.).*/\\1\\2/g' )" +set -g status-right "#[fg=green,bg=black] #(whoami)@#h|m:#(sh $HOME/.tmux_helper.sh memory)|l:#(sh $HOME/.tmux_helper.sh load)|#(sh $HOME/.tmux_helper.sh s_uptime)" + set -g status-right-length 40 set -g window-status-format "#I:#W#F" -- cgit v1.2.3