From 1511f933c7fbbbd4bb00da13d1cedf8c926fa5d4 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 21 Nov 2016 15:53:13 +0900 Subject: [PATCH] Small git completion fix --- shrc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/shrc b/shrc index dd6cfb5..8920f47 100755 --- a/shrc +++ b/shrc @@ -460,19 +460,10 @@ __sdcv_less(){ command -v sdcv >/dev/null && alias dict=__sdcv_less -g(){ - if test $# -eq 0 && null type git-info - then - git info - else - git "$@" - fi -} +__safe_alias g="git " $isdarwin && $inbash && \ . /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash -$isdarwin && $inzsh && \ - . /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.zsh if null type _git && $inbash then @@ -1053,7 +1044,8 @@ for f in /usr/share/git/git-prompt.sh \ do if test -r "$f" && ($inbash || $inzsh) then - echo Srouce $f + . "$f" + break fi done export GIT_PS1_SHOWDIRTYSTATE=t