Last active
August 15, 2017 15:10
-
-
Save aubreypwd/b6e79eb1bfa15d048c56 to your computer and use it in GitHub Desktop.
How to colorized your prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with wrapping issue.