Skip to content

Instantly share code, notes, and snippets.

@brunomiguel
Last active September 19, 2018 06:46
Show Gist options
  • Save brunomiguel/e10ec3a58b865b0cd172a4f59070eb35 to your computer and use it in GitHub Desktop.
Save brunomiguel/e10ec3a58b865b0cd172a4f59070eb35 to your computer and use it in GitHub Desktop.
Simple bash PS1 prompt
if [ "$color_prompt" = yes ]; then
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\[\033[00m\]\n\\$: \[$(tput sgr0)\]"
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment