This repo contains bash_profile specific, such as color control or PS1 manipulation, that can be shared with other to increase productivity. It is suggested to link the default user file ~/.bash_profile.
Linux and Mac
-
Open and edit your file: vi ~/.bash_profile
-
Paste: git_prompt_info() { git symbolic-ref HEAD 2> /dev/null | sed -e 's/refs/heads/(.*)/ (\1)/' 2> /dev/null }
PS1="[\033[1;34m]\w[\033[1;31m]$(git_prompt_info)[\033[0m] $(~/.rvm/bin/rvm-prompt) "
- Save: ESC and :wq