Skip to content

Instantly share code, notes, and snippets.

@rroblak
Last active August 29, 2015 14:11
Show Gist options
  • Save rroblak/6b5a8ae89013fe4ddc14 to your computer and use it in GitHub Desktop.
Save rroblak/6b5a8ae89013fe4ddc14 to your computer and use it in GitHub Desktop.
Various bash configs
source /etc/bash_completion.d/git
function g {
if [ $# -gt 0 ]; then
git "$@"
else
git status
fi
}
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \ || complete -o default -o nospace -F _git g
export GREP_OPTIONS='--color=auto'
export GREP_COLORS='mt=01;34'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment