Bash Color
Intro Bash์์ Color๋ฅผ ํํํ๋ ๋ฐฉ๋ฒ์ ์์๋ณธ๋ค. bash๋ก ์์ฑํ ํ๋ก๊ทธ๋จ์ ์ถ๋ ฅ์ด๋ ํ๋กฌํํธ๋ฅผ ์์๊ฒ ํํํด ๋ณด์. ๊ทธ๋ฌ๋ ์ง๋์น ์๊ฐ ํฌ์ ๋ณด๋ค๋ ์๊น์ด ์ฃผ๋ ์ฃผ๋ชฉ์ฑ๊ณผ ๊ตฌ๋ถ๋ ฅ, ํธํํจ, ๊ฐ๊ฒฐํจ์ ์ง์คํ์. Map the colors # Color mapping grey='\[\033[1;30m\]' red='\[\033[0;31m\]' RED='\[\033[1;31m\]' green='\[\033[0;32m\]' GREEN='\[\033[1;32m\]' yellow='\[\033[0;33m\]' YELLOW='\[\033[1;33m\]' purple='\[\033[0;35m\]' PURPLE='\[\033[1;35m\]' white='\[\033[0;37m\]' WHITE='\[\033[1;37m\]' blue='\[\033[0;34m\]' BLUE='\[\033[1;34m\]' cyan='\[\033[0;36m\]' CYAN='\[\033[1;36m\]' NC='\[\033[0m\]' Bash Prompt ~/.bash_profile์ด๋ ~/.bashrc์ ๋ค์๊ณผ ๊ฐ์ด ์์ฑํ๊ณ ๋ค์ ๋ก๊ทธ์ธ case $HOSTNAME in plato*) PSC="\e[1;33m" ;; *) PSC="\e[36m" ;; esac PS1="[\j]\[${PSC}\]\u@\h(\l) \[\e[37m\][ \w ]\[\e[00m\]\n\[\e[1m\]\#\[\e[0m\] \$ " REFERENCE Bash Prompt Generator : https://robotmoon.com/bash-prompt-generator/ Customizing Bash Prompt : https://linuxopsys.com/topics/customizing-bash-prompt-in-linux-changing-colors