X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=TipAndDoc%2F.bashrc;h=52fd36426df66bde7f4468139507ff2f74a60700;hb=b3bc7caeb2c9ad129342fd09b5f6e289cd8bbd46;hp=0ac605b67e261b582e2652075cbbc95dea9f3786;hpb=4c27517d9adfabcf9afa743b40c1d0eae81f873a;p=lab.git diff --git a/TipAndDoc/.bashrc b/TipAndDoc/.bashrc index 0ac605b..52fd364 100644 --- a/TipAndDoc/.bashrc +++ b/TipAndDoc/.bashrc @@ -32,7 +32,7 @@ function I { if [ "$1" ]; then history | grep "$@"; else history 30; fi } -if [ -f $BASH_COMPLETION_DIR/git ]; then +if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git ]; then export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ ' else export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '