1 min read

Add some colour and Git branch to iTerm

By default iTerm looks a little borning, so lets add some colour to it!

Published Feb 9, 2017 in general

Open iTerm2 and enter - touch ~/.bash_profile; open ~/.bash_profile

This will open your .bash_profile and allow you to add the following to it.

# bash_profile
  which rbenv > /dev/null; then eval "$(rbenv init -)"

#Git branch in promp and colours
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export PS1="@\[\033[33;1m\]\w\[\033[m\]:\[\033[36m\]\$(parse_git_branch)\[\033[m\]$ "

parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
1 min read

Updating Ruby

Ruby has been updated, so lets go over how we update our Ruby version.

Published in general, ruby