Tmux plugin that enables displaying uptime status for your workstation.
Introduces a new #{uptime}
format for your statuslines.
The following interpolations are made available for your statusline:
#{uptime}
- The current system uptime.
Here's the example in .tmux.conf
:
set -g status-right "uptime: #{uptime} | %a %h-%d %H:%M "
Pretty
Basic
set -g status-right "uptime: #{uptime} | %a %h-%d %H:%M "
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'robhurring/tmux-uptime'
Hit prefix + I
to fetch the plugin and source it.
#{uptime}
interpolation should now work.
Clone the repo:
$ git clone https://github.com/robhurring/tmux-uptime ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/uptime.tmux
Reload TMUX environment:
# type this in terminal
$ tmux source-file ~/.tmux.conf
#{uptime}
interpolation should now work.