Skip to content

Instantly share code, notes, and snippets.

@danrspencer
Last active January 11, 2023 15:35
Show Gist options
  • Save danrspencer/e9a4c6bc843e1c9eb45005f7ba01e9ce to your computer and use it in GitHub Desktop.
Save danrspencer/e9a4c6bc843e1c9eb45005f7ba01e9ce to your computer and use it in GitHub Desktop.
Bash Scratch
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