Skip to content

Commit

Permalink
update bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshina committed Mar 27, 2012
1 parent e6dd691 commit 6e400d1
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion _bashrc
Expand Up @@ -105,7 +105,7 @@ nvm use latest
fi

if [ "$TERM" = "screen" ]; then
PROMPT_COMMAND=~/screen_minidir
PROMPT_COMMAND=~/.screen_minidir
stty start ''
fi

Expand Down Expand Up @@ -133,3 +133,31 @@ alias gdi="git diff"
alias gdic="git diff -b --color-words"
alias gbr="git branch"
alias glog="git log --graph --date-order -C -M --pretty=format:\"<%h> %cd [%an] %s\""
alias vim=~/source/vim73/src/vim
alias vi=~/source/vim73/src/vim

alias git=/usr/bin/git

#alias ruby=~/.rubies/ruby-enterprise-1.8.7-2011.03/bin/ruby
#alias gem=~/.rubies/ruby-enterprise-1.8.7-2011.03/bin/gem
#alias irb=~/.rubies/ruby-enterprise-1.8.7-2011.03/bin/irb

source "$HOME/.rubies/src/rubies.sh"


source "$HOME/.git-completion"
# prompt command
hg_branch() {
hg branch 2> /dev/null | awk '{printf "(hg:" $1 ")"}'
}

git_branch() {
__git_ps1 '(git:%s)'
}

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(git_branch)$(hg_branch)\n\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(git_branch)$(hg_branch)\n\$ '
fi
unset color_prompt force_color_prompt

0 comments on commit 6e400d1

Please sign in to comment.