Skip to content

Instantly share code, notes, and snippets.

@bioshazard
Created July 16, 2021 21:55
Show Gist options
  • Save bioshazard/de6cebb95ad1fe527ae45557d2fbba2f to your computer and use it in GitHub Desktop.
Save bioshazard/de6cebb95ad1fe527ae45557d2fbba2f to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# Generates a detached tmate session, perfect to debug pipelines in-line
tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
tmate -S /tmp/tmate.sock wait-for new-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment