diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 20:04:58 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-01-18 20:04:58 -0500 |
| commit | 5e4850175b7c2641710f39c0771468a6f95940fb (patch) | |
| tree | 8b367db69b57853d460be71e02a5fcd88742ff9e | |
| parent | 2c9367a3962711f51f5d7424742be2c8ea0be572 (diff) | |
| download | dotfiles-5e4850175b7c2641710f39c0771468a6f95940fb.tar.gz dotfiles-5e4850175b7c2641710f39c0771468a6f95940fb.tar.xz | |
initial version of something better for *BSD
| -rw-r--r-- | tmux.conf | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -45,6 +45,7 @@ set -g status-left "[#S] " 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 ([0-9]+) ([hmrsdwy]).*$/\\1\\2/g' ) " +# uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\1/g' -e's/^([^ ]+)[ ]*(.).*/\1\2/g' set -g status-right-length 40 set -g window-status-format "#I:#W#F" |
