From 6e49c467dcc7810eb08bee655db5fce931948286 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 15 Jan 2016 21:06:12 +0000 Subject: [PATCH] Fix $ sign not changing into # --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 2160162..73e2c68 100644 --- a/.bashrc +++ b/.bashrc @@ -92,7 +92,12 @@ prompt_colon() set_bash_prompt() { - PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]\$ " + PS1="${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\H\[\033[00m\]$(prompt_colon)\[\033[01;34m\]\w\[\033[00m\]" + if [[ "$UID" = 0 ]]; then + PS1="${PS1}# " + else + PS1="${PS1}\$ " + fi } # https://help.ubuntu.com/community/CustomizingBashPrompt