From b3bc7caeb2c9ad129342fd09b5f6e289cd8bbd46 Mon Sep 17 00:00:00 2001 From: mitty Date: Wed, 26 Sep 2012 05:11:35 +0000 Subject: [PATCH] * Ubuntu 12.10 (quantal) beta does not set $BASH_COMPLETION_DIR git-svn-id: https://lab.mitty.jp/svn/lab/trunk@168 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- TipAndDoc/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\$ ' -- 1.7.9.5