Loads a few crucial tools in your new Unix/Linux box.
# In OSX, this will script will paste the cmd to the clipboard:
$ ./gen-cmd.sh
#!/bin/bash | |
# -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}') | |
URL="https://gist.githubusercontent.com/drio/d3cd79eeb1b32cd9828f25e246f6ac6d/raw/$SHA/unix-batteries.sh" | |
printf "%s" "/bin/bash -c \"\$(curl -fsSL $URL)\"" | pbcopy | |
echo "✨ Copied to clipboard" |
#!/bin/bash | |
# | |
date > unix-batteries.txt | |
echo "xx" >> unix-batteries.txt |