parsing the time amount from the uptime command rather than assuming days, should fix #1, needs more testing.

This commit is contained in:
Andrew Davidson 2019-06-06 17:50:43 -04:00
parent 4c5b049c44
commit 852161c5ce
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -15,7 +15,7 @@ set-window-option -g window-status-current-bg colour236
set-window-option -g window-status-current-fg colour141
# Add some info to the status bar
set -g status-right "#H | up #(uptime | awk '{print $3}' | sed 's/,//') days | #(~/bin/tmux-free-memory.sh) free"
set -g status-right "#H | up #(uptime | awk '{print $3 \" \" $4}' | sed 's/,//') | #(~/bin/tmux-free-memory.sh) free"
# Auto-set window title
setw -g automatic-rename