Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 917e10ab0f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 82 lines (75 sloc) 1.664 kb
LEAR='\e[00m'
N='\n'
BLACK='\e[0;30m'
RED='\e[0;31m'
GREEN='\e[0;32m'
YELLOW='\e[0;33m'
BLUE='\e[0;34m'
PURPLE='\e[0;35m'
CYAN='\e[0;36m'
WHITE='\e[0;37m'
BLACK_BOLD='\e[1;30m'
RED_BOLD='\e[1;31m'
GREEN_BOLD='\e[1;32m'
YELLOW_BOLD='\e[1;33m'
BLUE_BOLD='\e[1;34m'
PURPLE_BOLD='\e[1;35m'
CYAN_BOLD='\e[1;36m'
WHITE_BOLD='\e[1;37m'
# Width-count escaped (I think?)
CLEAR_E='\[\e[00m\]'
N_E='\[\n\]'
BLACK_E='\[\e[0;30m\]'
RED_E='\[\e[0;31m\]'
GREEN_E='\[\e[0;32m\]'
YELLOW_E='\[\e[0;33m\]'
BLUE_E='\[\e[0;34m\]'
PURPLE_E='\[\e[0;35m\]'
CYAN_E='\[\e[0;36m\]'
WHITE_E='\[\e[0;37m\]'
BLACK_BOLD_E='\[\e[1;30m\]'
RED_BOLD_E='\[\e[1;31m\]'
GREEN_BOLD_E='\[\e[1;32m\]'
YELLOW_BOLD_E='\[\e[1;33m\]'
BLUE_BOLD_E='\[\e[1;34m\]'
PURPLE_BOLD_E='\[\e[1;35m\]'
CYAN_BOLD_E='\[\e[1;36m\]'
WHITE_BOLD_E='\[\e[1;37m\]'
case "$COLORIZE_AS" in
'red')
SYSTEM_COLOR=$RED
SYSTEM_COLOR_BOLD=$RED_BOLD
SYSTEM_COLOR_E=$RED_E
SYSTEM_COLOR_BOLD_E=$RED_BOLD_E
;;
'yellow')
SYSTEM_COLOR=$YELLOW
SYSTEM_COLOR_BOLD=$YELLOW_BOLD
SYSTEM_COLOR_E=$YELLOW_E
SYSTEM_COLOR_BOLD_E=$YELLOW_BOLD_E
;;
'green')
SYSTEM_COLOR=$GREEN
SYSTEM_COLOR_BOLD=$GREEN_BOLD
SYSTEM_COLOR_E=$GREEN_E
SYSTEM_COLOR_BOLD_E=$GREEN_BOLD_E
;;
'blue')
SYSTEM_COLOR=$BLUE
SYSTEM_COLOR_BOLD=$BLUE_BOLD
SYSTEM_COLOR_E=$BLUE_E
SYSTEM_COLOR_BOLD_E=$BLUE_BOLD_E
;;
'cyan')
SYSTEM_COLOR=$CYAN
SYSTEM_COLOR_BOLD=$CYAN_BOLD
SYSTEM_COLOR_E=$CYAN_E
SYSTEM_COLOR_BOLD_E=$CYAN_BOLD_E
;;
'purple')
SYSTEM_COLOR=$PURPLE
SYSTEM_COLOR_BOLD=$PURPLE_BOLD
SYSTEM_COLOR_E=$PURPLE_E
SYSTEM_COLOR_BOLD_E=$PURPLE_BOLD_E
;;
esac
Jump to Line
Something went wrong with that request. Please try again.