Last active
April 17, 2019 20:35
-
-
Save drosenstark/50f84e8a6d2739852cc6b37e684704cc to your computer and use it in GitHub Desktop.
Paste the clipboard in to your shell for realz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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