https://github.com/robhurring/tmux-uptime
Tmux uptime plugin
https://github.com/robhurring/tmux-uptime
Last synced: 11 months ago
JSON representation
Tmux uptime plugin
- Host: GitHub
- URL: https://github.com/robhurring/tmux-uptime
- Owner: robhurring
- Created: 2016-01-20T16:58:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-20T19:31:43.000Z (over 10 years ago)
- Last Synced: 2024-04-13T19:19:39.645Z (over 2 years ago)
- Language: Shell
- Size: 43 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tmux Uptime Plugin
Tmux plugin that enables displaying uptime status for your workstation.
Introduces a new `#{uptime}` format for your statuslines.
### Usage
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 "
### Screenshots
#### OSX
*Pretty*

*Basic*
`set -g status-right "uptime: #{uptime} | %a %h-%d %H:%M "`

### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (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.
### Manual Installation
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.