Skip to content

Instantly share code, notes, and snippets.

@HelloAlone
HelloAlone / mysh
Created March 27, 2019 09:08
custom PS1
RCol='\033[0m'
Gre='\033[32m';
Red='\033[31m';
Blu='\033[34m';
Yel='\033[33m';
PS1="${RCol}┌─[\`if [ \$? = 0 ]; then echo "${Gre}"; else echo "${Red}"; fi\`\t\[${Rcol}\] \[${Blu}\]\u@\h\[${RCol}\] \[${Yel}\]\w\[${RCol}\]]\n└─╼ "