Mac OS X terminal with Gentoo look and feel HOWTO.

Mac OS X terminal with Gentoo look and feel HOWTO.

  • Open a terminal by going to Applications -> Utilities -> Terminal, double click on it, when the prompt appears, type:
vim .profile
  • Type ‘a’ (without the quotes) to start editing and type:
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
  • Save the file by typing ESC then ‘w’ and then ‘q’ (no quotes).
  • Close the terminal and restart it again, voila, a Gentoo terminal style in Mac OS X.
Advertisements

One thought on “Mac OS X terminal with Gentoo look and feel HOWTO.

  1. Update: with a git branch name:

    export PS1='[\[\033[01;32m\]\u@\h \[\033[01;34m\] \w\[\033[00m\]$(__git_ps1)\[\033[00m\]]\[\033[00m\] \$ \[\033[00m\]’

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s