.bash_profile git
1 | export CLICOLOR=1 |
2 | export LSCOLORS=gxfxaxdxcxegedabagacad |
. ~/.bash_profile ruby
done bash
show ruby version and git branch spa
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } c_1="\[\e[0m\]" c0="\[\e[30m\]" c1="\[\e[31m\033[1m\]" c2="\[\e[32m\033[1m\]" c3="\[\e[33m\]" c4="\[\e[34m\]" c5="\[\e[35m\]" c6="\[\e[36m\]" c7="\[\e[37m\]" PS1="$c2\W $c3(\$(~/.rvm/bin/rvm-prompt v g)) $c1\$(parse_git_branch) $c_1$ "