From a8a83079514beb59c761cff4e761596141edbe97 Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 14 Sep 2016 14:10:31 +0300 Subject: [PATCH] back to \$ in prompt! --- bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 0c4ab01..3166270 100644 --- a/bashrc +++ b/bashrc @@ -67,11 +67,11 @@ prompt_command() prompt_user="${pnred}\u${preset} " fi if [[ $UID -eq 0 ]]; then - color_bang="${pnred}" + bang="${pnred}#" else - color_bang="${pbold}" + bang="${pbold}$" fi - PS1="[ ${prompt_user}${HOSTNAME}:${pbold}\w${preset} ]${newline}${color_bang}>${preset} " + PS1="[ ${prompt_user}${HOSTNAME}:${pbold}\w${preset} ]${newline}${bang}${preset} " } PROMPT_COMMAND=prompt_command # }}} @@ -180,8 +180,8 @@ if [[ -n ${git_enabled} && -r ${git_prompt_path} ]]; then GIT_PROMPT_CONFLICTS="${pnred}x" GIT_PROMPT_STASHED="${pbmagenta}→" GIT_PROMPT_CLEAN="${pngreen}." - GIT_PROMPT_END_USER="\n${pbold}>${preset} " - GIT_PROMPT_END_ROOT="\n${pnred}>${preset} " + GIT_PROMPT_END_USER="\n${pbold}\$${preset} " + GIT_PROMPT_END_ROOT="\n${pnred}#${preset} " fi unset completion_path git_prompt_path # }}}