~jbauer/dotfiles

ref: 77e39a6c0ee4c5e3d95f75f21f1cc9d30ea32232 dotfiles/.local/bin/sshmenu -rwxr-xr-x 194 bytes
77e39a6cJake Bauer Add script to easily SSH into hosts 3 months ago
                                                                                
1
2
3
4
5
6
7
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-)"