Skip to content

Instantly share code, notes, and snippets.

@moqmar
Created November 3, 2022 20:24
Show Gist options
  • Save moqmar/57e8b97e6d1a3bbcdc81fc3b61e81dd3 to your computer and use it in GitHub Desktop.
Save moqmar/57e8b97e6d1a3bbcdc81fc3b61e81dd3 to your computer and use it in GitHub Desktop.
PS1_usercolor=$([ $(id -u) -eq 0 ] && echo "31" || echo "34")
PS1=$(printf '\e[0;1m[\e[1;'$PS1_usercolor'm\\u\e[0;1m@\\h \e[1;33m\\w\e[0;1m]\\$\e[0m ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment