Skip to content

Instantly share code, notes, and snippets.

@eval
Last active March 2, 2017 23:38
Show Gist options
  • Save eval/30ae9fc9f23014eddacf940cbe9400ce to your computer and use it in GitHub Desktop.
Save eval/30ae9fc9f23014eddacf940cbe9400ce to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# pipe stuff to pry followed by a repl:
# gist -r 36b4092748310bc8ec020f5e4dad8ea9 | prype
var=`cat;echo; echo '$stdin = $stdin.reopen "/dev/tty";'`
printf "${var}" | pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment