Skip to content

Instantly share code, notes, and snippets.

Last active October 11, 2022 08:27
What would you like to do?

Unix batteries

Loads a few crucial tools in your new Unix/Linux box.


# In OSX, this will script will paste the cmd to the clipboard:
$ ./
# -f: fail-early
# -s: silent
# -S: When used with -s, --silent, it makes curl show an error message if it fails.
# -L: Follow redirect
SHA=$(git log | head -1 | awk '{print $2}')
printf "%s" "/bin/bash -c \"\$(curl -fsSL $URL)\"" | pbcopy
echo "✨ Copied to clipboard"
date > unix-batteries.txt
echo "xx" >> unix-batteries.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment