* Ubuntu 12.10 (quantal) beta does not set $BASH_COMPLETION_DIR
[lab.git] / TipAndDoc / .bashrc
index 0ac605b..52fd364 100644 (file)
@@ -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\$ '