compgen: bash built-in for auto-completion

# List all commands that you could run: compgen -c # List all aliases compgen -a # Find all command with "fetch" in the name (all *fetch* variants) compgen -c | grep fetch

Fernando Costa Bertoldi

Unofficial Bash Strict Mode

http://redsymbol.net/articles/unofficial-bash-strict-mode/ #!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' This causes bash to behave in a way that makes many classes of subtle bugs impossible. set -e: exit script if any command has a non-zero exit status. set -u: a reference to any variable you haven’t previously defined - with the exceptions of $* and $@ - is an error, and causes the program to immediately exit. set -o pipefail: exit if any command in a pipeline fails...

Fernando Costa Bertoldi