~jbauer/dotfiles

77e39a6c0ee4c5e3d95f75f21f1cc9d30ea32232 — Jake Bauer a month ago 09d92d0
Add script to easily SSH into hosts
1 files changed, 8 insertions(+), 0 deletions(-)

A .local/bin/sshmenu
A .local/bin/sshmenu => .local/bin/sshmenu +8 -0
@@ 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-)"