Skip to content

robertbradl/tmux-ssh-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tmux SSH-Picker

GitHub License

An over-engineered approach to me being to lazy to type out ssh commands. The plugin was heavily inspired by omerxx and his tmux plugin tmux-sessionx

image

Notice

I am still in the process of learning how to write shell scripts. Currently, the plugin is as bare-bone as it can be. My plan is to implement additional features as I continue to learn about sh.

Prerequisites

Install

Add this to your .tmux.conf and run Ctrl-I for tpm to install the plugin.

set -g @plugin 'robertbradl/tmux-ssh-picker'

Define connections

Inside your tmux directory, make a file called profiles.yaml, it will store all your connections.

touch $HOME/.config/tmux/profiles.yaml # Directory might be different for your system!

After that, you can set up a connection like so:

- label: "Test label"
  window: "Window name"
  user: "admin"
  host: "example.org"
  key: "path/to/your/shh-key.pem"

How it works

The plugin uses yq and jq to pass all profiles into fzf. After you make a selection, a ssh command gets constructed and tmux then creates a new window where it runs the ssh command in.

About

An over-engineered approach to me being too lazy to type out ssh commands.

Topics

Resources

License

Stars

Watchers

Forks

Languages