Skip to content

Instantly share code, notes, and snippets.

@ryot4
Created July 21, 2016 13:52
Show Gist options
  • Save ryot4/687c85a020e342c4537b1b128a689fe1 to your computer and use it in GitHub Desktop.
Save ryot4/687c85a020e342c4537b1b128a689fe1 to your computer and use it in GitHub Desktop.
#!/bin/sh
host=$(grep '^Host' ~/.ssh/config | \
cut -d \ -f 2 | \
dmenu $DMENU_OPTIONS -p 'ssh to:')
exec urxvtcd -title "ssh: $host" -e ssh "$host"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment