Skip to content

Instantly share code, notes, and snippets.

@dugancathal
Last active February 2, 2016 15:40
Show Gist options
  • Save dugancathal/156f75e2d5d3ebd0d1ac to your computer and use it in GitHub Desktop.
Save dugancathal/156f75e2d5d3ebd0d1ac to your computer and use it in GitHub Desktop.
g() {
if [[ $# > 0 ]]; then
git "$@"
else
git status
fi
}
source "/usr/local/etc/bash_completion.d/git-completion.bash"
__git_complete g _git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment