Skip to content

Instantly share code, notes, and snippets.

@drosenstark
Last active April 17, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drosenstark/50f84e8a6d2739852cc6b37e684704cc to your computer and use it in GitHub Desktop.
Save drosenstark/50f84e8a6d2739852cc6b37e684704cc to your computer and use it in GitHub Desktop.
Paste the clipboard in to your shell for realz
#!/bin/bash
pbpaste > /tmp/shellpaste.sh
echo "Execute this?"
cat /tmp/shellpaste.sh
echo
read -p "Press enter to run it..."
bash /tmp/shellpaste.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment