A tab completion script that works for Bash on Linux and Mac OS X. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as yo have one of those two commands, this should work.
$ gradle [TAB]
#!/bin/bash -ef | |
URL=${URL:-http://www.goproblems.com/mkoff/goproblemsSGF.tgz} | |
WORKDIR=${WORKDIR:-.} | |
mkdir -p "$WORKDIR" | |
cd "$WORKDIR" | |
[[ -s goproblemsSGF.tgz ]] || \ | |
wget "$URL" |