#!/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