Skip to content

Instantly share code, notes, and snippets.

@yosemsweet
Created October 5, 2011 01:57
Show Gist options
  • Save yosemsweet/1263427 to your computer and use it in GitHub Desktop.
Save yosemsweet/1263427 to your computer and use it in GitHub Desktop.
.bashrc file
#Your normal .bashrc code should go here
# adding RVM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
# Use current directory bin path first
export PATH=./bin/$PATH
#load bash bash colours and git completion for a pretty and efficient workflow
source ~/bash-colours.sh
source ~/git-completion.bash #This allows you to tab complete git commands and branches. very useful
#write out ruby version, gemset, git repository, and current branch in your prompt
# ~/workspace/louvre (1.9.2-p180@louvre) [master] →
export PS1="\[$IGreen\]\w \[$Yellow\](\$(~/.rvm/bin/rvm-prompt v p g s)) \[$Yellow\]\$(__git_ps1 [%s]) \[$BIGreen\]→ \[$Color_Off\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment