Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash -ef
URL=${URL:-http://www.goproblems.com/mkoff/goproblemsSGF.tgz}
WORKDIR=${WORKDIR:-.}
mkdir -p "$WORKDIR"
cd "$WORKDIR"
[[ -s goproblemsSGF.tgz ]] || \
wget "$URL"

Gradle tab completion script for Bash

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.

Usage

$ gradle [TAB]