Created
October 23, 2016 07:40
-
-
Save asayers/ec549f871c1ba30ee3de79cbb09a2a3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
list_hosts () { echo "localhost"; sed -n 's/Host //p' "$HOME/.ssh/config"; } | |
SELECTION=$(list_hosts | dmenu -i) | |
case "$SELECTION" in | |
"localhost") exec st tmux ;; | |
*) exec st mosh "$SELECTION" tmux ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment