Skip to content

Commit

Permalink
adding bash-completion script from git source code and enabling git-a…
Browse files Browse the repository at this point in the history
…ware prompt
  • Loading branch information
git2samus committed Nov 29, 2011
1 parent de19d5d commit 3040a44
Show file tree
Hide file tree
Showing 3 changed files with 2,741 additions and 2 deletions.
1 change: 1 addition & 0 deletions .bash_profile
Expand Up @@ -7,6 +7,7 @@ export CDPATH=.:~:~/dev
export PATH=$HOME/bin${PATH:+:$PATH}


[[ -r ~/.git-completion.bash ]] && . ~/.git-completion.bash
[[ -r ~/.functionrc ]] && . ~/.functionrc
[[ -r ~/.bashrc ]] && . ~/.bashrc

Expand Down
4 changes: 2 additions & 2 deletions .bashrc
Expand Up @@ -5,9 +5,9 @@ if [[ $- = *i* ]]; then
# TODO: make conditional based on editing-mode (note: when changing modes from .inputrc $SHELLOPTS does not recognize it)
# bind -x '"\C-\M-w":kill -WINCH $$';; # can't use -x on .inputrc

if [[ -r ~/.gitsh ]]; then
# detect git-aware prompt function
if [[ $(type -t __git_ps1) = function ]]; then
gitps1='$(__git_ps1)'
. ~/.gitsh
fi

# monochrome
Expand Down

0 comments on commit 3040a44

Please sign in to comment.