Cleaner colors for reuse
parent
2800e7eda1
commit
e0b3ef5f8f
|
|
@ -1,33 +1,31 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Normal Colors
|
||||||
GREEN='\[\033[0;32m\]'
|
GREEN=$'\e[0;32m'
|
||||||
RED='\[\033[0;31m\]'
|
RED=$'\e[0;31m'
|
||||||
BLUE='\[\033[0;34m\]'
|
BLUE=$'\e[0;34m'
|
||||||
PINK='\[\e[37;1;35m\]'
|
WHITE=$'\e[1;37m'
|
||||||
WHITE='\[\033[1;37m\]'
|
BLACK=$'\e[0;30m'
|
||||||
BLACK='\[\033[0;30m\]'
|
YELLOW=$'\e[0;33m'
|
||||||
YELLOW='\[\033[0;33m\]'
|
PURPLE=$'\e[0;35m'
|
||||||
PURPLE='\[\033[0;35m\]'
|
CYAN=$'\e[0;36m'
|
||||||
CYAN='\[\033[0;36m\]'
|
GRAY=$'\e[1;30m'
|
||||||
GRAY='\[\033[1;30m\]'
|
PINK=$'\e[37;1;35m'
|
||||||
NORMAL='\[\033[00m\]'
|
|
||||||
|
|
||||||
LIGHT_BLUE='\[\033[1;34m\]'
|
|
||||||
LIGHT_GREEN='\[\033[1;32m\]'
|
|
||||||
LIGHT_CYAN='\[\033[1;36m\]'
|
|
||||||
LIGHT_RED='\[\033[1;31m\]'
|
|
||||||
LIGHT_PURPLE='\[\033[1;35m\]'
|
|
||||||
LIGHT_YELLOW='\[\033[1;33m\]'
|
|
||||||
LIGHT_GRAY='\[\033[0;37m\]'
|
|
||||||
|
|
||||||
# Stole these from Steve Losh
|
|
||||||
# TODO:
|
|
||||||
D=$'\e[37;40m'
|
|
||||||
PINK=$'\e[35;40m'
|
|
||||||
GREEN=$'\e[32;40m'
|
|
||||||
ORANGE=$'\e[33;40m'
|
ORANGE=$'\e[33;40m'
|
||||||
|
|
||||||
|
# Revert color back to the normal color
|
||||||
|
NORMAL=$'\e[00m'
|
||||||
|
|
||||||
|
# LIGHT COLORS
|
||||||
|
LIGHT_BLUE=$'\e[1;34m'
|
||||||
|
LIGHT_GREEN=$'\e[1;32m'
|
||||||
|
LIGHT_CYAN=$'\e[1;36m'
|
||||||
|
LIGHT_RED=$'\e[1;31m'
|
||||||
|
LIGHT_PURPLE=$'\e[1;35m'
|
||||||
|
LIGHT_YELLOW=$'\e[1;33m'
|
||||||
|
LIGHT_GRAY=$'\e[0;37m'
|
||||||
|
|
||||||
|
|
||||||
# Stolen from Steve Losh
|
# Stolen from Steve Losh
|
||||||
function prompt_char {
|
function prompt_char {
|
||||||
git branch >/dev/null 2>/dev/null && echo '±' && return
|
git branch >/dev/null 2>/dev/null && echo '±' && return
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export PS1='\[\033[1;34m\]$(prompt_char)\[\033[1;32m\] $(parse_git_branch) ${ORANGE}\h ${D}in ${GREEN}\w ${D}→ '
|
export PS1='${LIGHT_BLUE}$(prompt_char)${LIGHT_GREEN} $(parse_git_branch) ${ORANGE}\h ${NORMAL}in ${GREEN}\w ${NORMAL}→ '
|
||||||
Loading…
Reference in New Issue