Last active
January 11, 2023 15:35
-
-
Save danrspencer/e9a4c6bc843e1c9eb45005f7ba01e9ce to your computer and use it in GitHub Desktop.
Bash Scratch
This file contains hidden or 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
function scra { | |
FILE=/tmp/scratch-`uuidgen`.sh | |
echo '#!/bin/bash' > ${FILE} | |
chmod +x ${FILE} | |
code ${FILE} | |
ls ${FILE} | entr ${FILE} | |
} | |
export -f scra > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment