Last active
August 29, 2015 14:18
-
-
Save BenTheElder/4b959e708c3e0f00f51c to your computer and use it in GitHub Desktop.
my .bashrc color prompt snippet
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=ExFxCxDxBxegedabagacad | |
#Define colors | |
DEFAULT="\[\033[m\]" | |
WHITE="\[\033[0;37m\]" | |
BLACK="\[\033[30m\]" | |
RED="\[\033[31m\]" | |
GREEN="\[\033[32m\]" | |
YELLOW="\[\033[33m\]" | |
BLUE="\[\033[34m\]" | |
PURPLE="\[\033[35m\]" | |
CYAN="\[\033[36m\]" | |
LGRAY="\[\033[37m\]" | |
DARKGRAY="\[\033[1;30m\]" | |
LRED="\[\033[1;31m\]" | |
LGREEN="\[\033[1;32m\]" | |
LYELLOW="\[\033[1;33m\]" | |
LTBLUE="\[\033[1;34m\]" | |
LPURPLE="\[\033[1;35m\]" | |
LCYAN="\[\033[1;36m\]" | |
BG_BLACK="\[\033[40m\]" | |
BG_RED="\[\033[41m\]" | |
BG_GREEN="\[\033[42m\]" | |
BG_YELLOW="\[\033[43m\]" | |
BG_BLUE="\[\033[44m\]" | |
BG_PURPLE="\[\033[45m\]" | |
BG_CYAN="\[\033[46m\]" | |
BG_LGRAY="\[\033[47m\]" | |
_DATE='\[\033[34m\]\d \t' | |
_HOST='\[\033[1;33m\]\h' | |
_L1ROOT='\[\033[1;30m\][\[\033[1;31m\]\u\[\033[0;37m\]@\[\033[1;33m\]\h\[\033[0;37m\]: \[\033[1;36m\]\w\[\033[1;30m\]]' | |
_L1USER='\[\033[1;30m\][\[\033[1;32m\]\u\[\033[0;37m\]@\[\033[1;33m\]\h\[\033[0;37m\]: \[\033[1;36m\]\w\[\033[1;30m\]]' | |
_PATH='\[\033[1;36m\]\w' | |
_ROOT='\[\033[1;31m\]\u' | |
_USER='\[\033[1;32m\]\u' | |
PS1='\n\[\033[1;30m\][\[\033[1;32m\]\u\[\033[0;37m\]@\[\033[1;33m\]\h\[\033[0;37m\]: \[\033[1;36m\]\w\[\033[1;30m\]]\n\[\033[37m\]$ ' | |
case `id -u` in | |
0) export PS1='\n\[\033[1;30m\][\[\033[1;31m\]\u\[\033[0;37m\]@\[\033[1;33m\]\h\[\033[0;37m\]: \[\033[1;36m\]\w\[\033[1;30m\]]\n\[\033[37m\]# ';; | |
*) export PS1='\n\[\033[1;30m\][\[\033[1;32m\]\u\[\033[0;37m\]@\[\033[1;33m\]\h\[\033[0;37m\]: \[\033[1;36m\]\w\[\033[1;30m\]]\n\[\033[37m\]$ ';; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment