From 76c1e7462e12d8ba5a1d700b7b8b5def117cbfc6 Mon Sep 17 00:00:00 2001 From: Mark Schmitz Date: Mon, 28 Feb 2022 15:40:26 +0000 Subject: [PATCH] use awk in tmux conf --- linux/.tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/.tmux.conf b/linux/.tmux.conf index c316fef..e8f979e 100644 --- a/linux/.tmux.conf +++ b/linux/.tmux.conf @@ -15,7 +15,7 @@ set -g status-justify centre # center align window list set -g status-left-length 20 set -g status-right-length 140 set -g status-left '#H • #[default]' -set -g status-right '#(tmux-mem-cpu-load --interval 1) • #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") • %a %H:%M:%S #[default] %Y-%m-%d' +set -g status-right '#(tmux-mem-cpu-load --interval 1) • #(uptime | awk -F"(up )|," '{print $2}') • %a %H:%M:%S #[default] %Y-%m-%d' # Try screen256-color (https://github.com/tmux/tmux/issues/622): if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 \)'" 'set -g default-terminal "screen-256color"'