Skip to content

Instantly share code, notes, and snippets.

@danslimmon
Created July 30, 2015 18:51
Show Gist options
  • Save danslimmon/67b217a7eb0e6d7ae012 to your computer and use it in GitHub Desktop.
Save danslimmon/67b217a7eb0e6d7ae012 to your computer and use it in GitHub Desktop.
function sshscreen() {
tmpfile=$(mktemp -t sshscreen-)
echo "exec ssh $*" > "$tmpfile"
chmod 755 "$tmpfile"
screen -s "$tmpfile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment