Permalink
Browse files

Make prompt more intrusive as root/less otherwise

  • Loading branch information...
1 parent e55c2d9 commit 28d88917c551ed946bb228d795f7c40513ce4629 @bcat committed Apr 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bash_prompt
View
3 bash_prompt
@@ -84,6 +84,7 @@ precmd () {
_bash_prompt_ps1_append ' '
_bash_prompt_ps1_build_directory
_bash_prompt_ps1_append $'\n'
+ _bash_prompt_ps1_escape "$_bash_prompt_term_reset"
_bash_prompt_ps1_build_symbol
_bash_prompt_ps1_escape "$_bash_prompt_term_reset"
_bash_prompt_ps1_escape "$(_bash_prompt_title)"
@@ -181,8 +182,8 @@ _bash_prompt_ps1_build_directory () {
}
_bash_prompt_ps1_build_symbol () {
- _bash_prompt_ps1_escape "$_bash_prompt_term_white"
if [ "$UID" -eq 0 ]; then
+ _bash_prompt_ps1_escape "$_bash_prompt_term_red"
_bash_prompt_ps1_append '# '
else
_bash_prompt_ps1_append '$ '

0 comments on commit 28d8891

Please sign in to comment.