From 6c98c6efb747e0de804c837e319888d377e28758 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 20 Dec 2012 14:53:10 +0900 Subject: [PATCH] update g command --- bashrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index be7059e..7043005 100755 --- a/bashrc +++ b/bashrc @@ -217,7 +217,14 @@ if iscygwin; then alias ls="ls -CFG $(iswindows || test "$TERM" = dumb || echo --color=auto)" fi -alias g=git +g(){ + if test $# -eq 0 && null type git-info + then + git info + else + git "$@" + fi +} if null type _git then # enable programmable completion for g