Skip to content

Instantly share code, notes, and snippets.

@aubreypwd
Last active August 15, 2017 15:10
Show Gist options
  • Save aubreypwd/b6e79eb1bfa15d048c56 to your computer and use it in GitHub Desktop.
Save aubreypwd/b6e79eb1bfa15d048c56 to your computer and use it in GitHub Desktop.
How to colorized your prompt
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color
# Colorful ls
alias ls='ls -GFh'
# I <3 My Prompt
# Based on http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
# and http://code.tutsplus.com/tutorials/how-to-customize-the-command-prompt--net-20586
# and http://stackoverflow.com/a/342135/1436129
PS1='\[\e[1;35m\]\n\w\r\n\[\e[1;31m\][\#]>\[\e[1;32m\]\u\[\e[1;34m\]:\[\e[0m\] '
@aubreypwd
Copy link
Author

Updated with wrapping issue.

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