Created
June 5, 2013 20:50
-
-
Save cuibonobo/5717220 to your computer and use it in GitHub Desktop.
Get the Terminal to display color-coded information about files and change the format/color of the prompt. This also aliases cd so that you get the contents of a directory whenever you cd into it.
This file contains 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
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# ------------Color Aliases --------------- | |
BLACK="0;30" | |
GREEN="0;32" | |
CYAN="0;36" | |
RED="0;31" | |
PURPLE="0;35" | |
BROWN="0;33" | |
BLUE="0;34" | |
LITEGREEN="1;32" | |
LITECYAN="1;36" | |
LITERED="1;31" | |
LITEPURPLE="1;35" | |
LITEBROWN="1;33" | |
LITEBLUE="1;34" | |
#-------------End Color Aliases------------ | |
#DEFAULTPROMPT="\\u@\h \\W\\$ " | |
PROMPT="[ \u@\w ] \$ " | |
PS1="\[\e[\$LITEGREEN m\]$PROMPT \[\e[m\]" | |
alias cd='cd;ls' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment