- Setup bash prompt +Change the color of the prompt
- Customize bash prompt
- How to use \e
- Detect unicode character(to be used in the prompt) by roughly drawing its shape
- GUI to generate bash prompt
export PS1="\[\e[0;33m\]\A \u@\h:\W \n\$ \[\e[m\]"
export PS1="\[\e[38;5;35m\]\T [\h:\[\e[38;5;33m\]\W\[\e[38;5;35m\]]\n$ \[$(tput sgr0)\]"
tty -s && export PS1="\[\033[38;5;35m\]\t [\[\033[38;5;33m\]\j\[\033[38;5;35m\]] [\h:\[$(tput sgr0)\]\[\033[38;5;33m\]\w\[$(tput setaf 3)\]]\n\\[\033[38;5;35m\]➜ \[$(tput sgr0)\]"