function set_ps1() { COLOR_DEFAULT='\[\e[0m\]' BOLD='\[\e[1m\]' COLOR1='\[\e[48;5;52m\]' # bg dark red COLOR2='\[\e[38;5;52m\]' # fg dark red COLOR3='\[\e[48;5;1m\]' # bg red COLOR4='\[\e[38;5;21m\]' # fg blue echo "\ "$COLOR1"\ !!!\ "$COLOR_DEFAULT"\ \ "$BOLD"\ "$COLOR2"\ "$COLOR3"\ \u\ \ @\ \ \h\ :\ "$COLOR_DEFAULT"\ "$COLOR4"\ \w\ "$COLOR_DEFAULT"\ "$COLOR2"\ \\$\ "$COLOR_DEFAULT"\ \ " } PS1="$(set_ps1)"