Skip to content

Instantly share code, notes, and snippets.

@kagerouttepaso
Last active August 29, 2015 14:02
Show Gist options
  • Save kagerouttepaso/91190e4dadb5f2754b9a to your computer and use it in GitHub Desktop.
Save kagerouttepaso/91190e4dadb5f2754b9a to your computer and use it in GitHub Desktop.

bashの色設定

#how to use
#echo -e "${COLOR_YELLOW} test test ${COLOR_END}"
COLOR_ESC="\e["
COLOR_ESCEND="m"
COLOR_END="${COLOR_ESC}${COLOR_ESCEND}"
COLOR_RED="${COLOR_ESC}31${COLOR_ESCEND}"
COLOR_GREEN="${COLOR_ESC}32${COLOR_ESCEND}"
COLOR_YELLOW="${COLOR_ESC}33${COLOR_ESCEND}"
COLOR_BLUE="${COLOR_ESC}34${COLOR_ESCEND}"
COLOR_MAGENTA="${COLOR_ESC}35${COLOR_ESCEND}"
COLOR_CYAN="${COLOR_ESC}36${COLOR_ESCEND}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment