Skip to content

Instantly share code, notes, and snippets.

@zph
Created December 15, 2014 19:02
Show Gist options
  • Select an option

  • Save zph/55ae21ccac139180fd2d to your computer and use it in GitHub Desktop.

Select an option

Save zph/55ae21ccac139180fd2d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
tmate show-messages | egrep -o 'Remote session: (.*)' | awk '{print $4}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment