From: Ken-ichi Mito Date: Fri, 4 Oct 2013 04:00:56 +0000 (+0900) Subject: bash completion script moved at Ubuntu 13.04 X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=29f6915b8885ccc458b4c0cfd723a392858fd73a;p=lab.git bash completion script moved at Ubuntu 13.04 --- diff --git a/TipAndDoc/.bashrc b/TipAndDoc/.bashrc index bece347..8d7dfbc 100644 --- a/TipAndDoc/.bashrc +++ b/TipAndDoc/.bashrc @@ -1,9 +1,3 @@ -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if [ -f /etc/bash_completion ]; then - . /etc/bash_completion -fi umask 022 # create new file with '644' ulimit -c 0 # no dump core @@ -32,7 +26,8 @@ function I { if [ "$1" ]; then history | grep "$@"; else history 30; fi } -if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git ]; then +if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git \ + -o -f $BASH_COMPLETION_COMPAT_DIR/git-prompt ]; then export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ ' else export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '