1
0
Fork 0

back to \$ in prompt!

This commit is contained in:
Von Random 2016-09-14 14:10:31 +03:00
parent b53651728f
commit a8a8307951

10
bashrc
View file

@ -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
# }}}