Last active
September 19, 2018 06:46
-
-
Save brunomiguel/e10ec3a58b865b0cd172a4f59070eb35 to your computer and use it in GitHub Desktop.
Simple bash PS1 prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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