Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 154311 Details for
Bug 223641
app-shells/bash - default /etc/bash/bashrc unnecessary PROMPT_COMMAND instead of PS1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bashrc_no_prompt_command.patch
bashrc_no_prompt_command.patch (text/plain), 1.05 KB, created by
michael@smith-li.com
on 2008-05-26 03:49:36 UTC
(
hide
)
Description:
bashrc_no_prompt_command.patch
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2008-05-26 03:49:36 UTC
Size:
1.05 KB
patch
obsolete
>--- bashrc.orig 2008-05-25 23:15:04.000000000 -0400 >+++ bashrc 2008-05-25 23:29:40.000000000 -0400 >@@ -26,10 +26,13 @@ > # Change the window title of X terminals > case ${TERM} in > xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix) >- PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' >+ PS1='\[\033]0;\u@\h:\w\007\]' > ;; >- screen) >- PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' >+ screen*) >+ PS1='\[\033k\u@\h:\w\033\\\]' >+ ;; >+ *) >+ unset PS1 > ;; > esac > >@@ -65,9 +68,9 @@ > fi > > if [[ ${EUID} == 0 ]] ; then >- PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' >+ PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' > else >- PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' >+ PS1+='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' > fi > > #BSD#@export CLICOLOR=1 >@@ -76,9 +79,9 @@ > else > if [[ ${EUID} == 0 ]] ; then > # show root@ when we don't have colors >- PS1='\u@\h \W \$ ' >+ PS1+='\u@\h \W \$ ' > else >- PS1='\u@\h \w \$ ' >+ PS1+='\u@\h \w \$ ' > fi > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223641
: 154311