Skip to content

obxhdx/tmux-ssh-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tmux-ssh-status

Displays ssh username and hostname in tmux status-right and renames window to hostname.

Usage

Add #{ssh_status} format strings to existing status-right (or status-left) tmux option. Example:

# in .tmux.conf
set -g status-right '#{ssh_status} | %a %h-%d %H:%M '

Options

By default, this plugin will also rename the window to the hostname of the ssh session. To disable this, add the following:

# in .tmux.conf
set -g @ssh_auto_rename_window off

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins in .tmux.conf:

set -g @plugin 'obxhdx/tmux-ssh-status'

Hit prefix + I to fetch the plugin and source it.

If format strings are added to status-right (or status-left), they should now be visible.

Manual Installation

Clone the repo:

$ git clone https://github.com/obxhdx/tmux-ssh-status ~/clone/path

Add this line to the bottom of .tmux.conf:

run-shell ~/clone/path/ssh_status.tmux

Reload TMUX environment:

# type this in terminal
$ tmux source-file ~/.tmux.conf

If format strings are added to status-right (or status-left), they should now be visible.

Limitations

The time taken to update the status bar will take into account the status-interval tmux option. Therefore, you can expect some delay once you move in/out a window where a given ssh connection is active.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages