Skip to content

Instantly share code, notes, and snippets.

@ahmed-bacha
Last active August 29, 2015 14:14
Show Gist options
  • Save ahmed-bacha/17e8efcce421219226eb to your computer and use it in GitHub Desktop.
Save ahmed-bacha/17e8efcce421219226eb to your computer and use it in GitHub Desktop.
Colorize Osx Shell

Colorize your terminal (Shell) !

Profile file


Open your terminal, and enter :

nano ~/.bash_profile

It will open your profile file (file that contains your PATH exports, preferences ...)

Add colors


Add the following lignes to the file :

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

Save changes (in Nano) by typing ctrl + X then, Yes

Persist changes


Quit and re-open your terminal. Enjoy !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment