Skip to content

Instantly share code, notes, and snippets.

@HelloAlone
Created March 27, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HelloAlone/7c00c73bab8d0d83798c35be2ec42ffa to your computer and use it in GitHub Desktop.
Save HelloAlone/7c00c73bab8d0d83798c35be2ec42ffa to your computer and use it in GitHub Desktop.
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└─╼ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment