blob: 76d9aa7225c067cf33d33f7fd717c036f20094cb (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
host=$(perl -wlne'/^Host\s+(\S+)/ and !/\*/ and print $1' $HOME/.ssh/config \
| dmenu -p "ssh to tmux on host" "$@")
if [ -n "$host" ]; then
xfce4-terminal -x ssh-and-tmux "$host"
fi
|