dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 77e39a6c0ee4c5e3d95f75f21f1cc9d30ea32232
parent 09d92d0748ca85d76453ef24e028b6a1fe001ebc
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon,  7 Jun 2021 21:13:08 -0400

Add script to easily SSH into hosts

Diffstat:
A.local/bin/sshmenu | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/.local/bin/sshmenu b/.local/bin/sshmenu @@ -0,0 +1,8 @@ +#!/bin/sh + +terminal="st" +configfile="$HOME/.ssh/config" + +choice="$(grep "Host " "$configfile"| dmenu -i -l 20 -p "SSH Into:")" || exit 1 + +"$terminal" -e ssh "$(echo "$choice" | cut -d' ' -f2-)"