Skip to content

Instantly share code, notes, and snippets.

@milnak
Last active June 13, 2023 20:12
Show Gist options
  • Save milnak/1fb8913d72c7d1dee56bab324436ef27 to your computer and use it in GitHub Desktop.
Save milnak/1fb8913d72c7d1dee56bab324436ef27 to your computer and use it in GitHub Desktop.
My bash prompt #linux
export PS1='\033[0;37m\342\224\214\342\224\200\e[0;36m$(code=${?##0};echo ${code:+\033[0;37m[\033[0;31m\342\234\227\033[0;37m]\342\224\200})\033[0;37m[\e[0;33m\u\e[0;37m@\e[0;33m\h\e[0;37m]\342\224\200[\e[0;36m\A\e[0;37m]\342\224\200[\033[0;32m\w\033[0;37m]\n\033[0;37m\342\224\224\342\224\200[\033[0;34m\!\033[0;37m]\342\224\200\342\225\274 \033[0m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment