Colored terminal simplificated

Posted by Daniel Vela on May 1, 2013

Create in your $HOME directory a file named .bash_profile and write the following code on it:

export PATH=$PATH:$HOME/bin   
export CLICOLOR=1   
export LSCOLORS=gxfxcxdxbxegedabagacad   
export PS1='${debian_chroot:+($debian_chroot)}\[\033[1;32m\]\u@\h\[\033[1;31m\]:\[\033[0;36m\]\w$\[\033[0m\] '  

autoload -U colors && colors
export PS1="%{$fg[green]%}%n@%m %{$fg[cyan]%}%~ %{$reset_color%}%% "

colored terminal