Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 406262 Details for
Bug 554086
app-shells/bash: make PS1 setup more amenable to window title customization
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-window-title.patch
bash-window-title.patch (text/plain), 1.56 KB, created by
kfm
on 2015-07-06 17:00:28 UTC
(
hide
)
Description:
bash-window-title.patch
Filename:
MIME Type:
Creator:
kfm
Created:
2015-07-06 17:00:28 UTC
Size:
1.56 KB
patch
obsolete
>diff -urN bash.orig/bashrc bash/bashrc >--- bash.orig/bashrc 2015-07-06 18:02:36.265648306 +0200 >+++ bash/bashrc 2015-07-06 18:16:14.341521461 +0200 >@@ -36,19 +36,6 @@ > # the history will halt the shell prompt until it's finished. > #PROMPT_COMMAND='history -a' > >-# Change the window title of X terminals >-case ${TERM} in >- xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) >- PS1='\[\033]0;\u@\h:\w\007\]' >- ;; >- screen*) >- PS1='\[\033k\u@\h:\w\033\\\]' >- ;; >- *) >- unset PS1 >- ;; >-esac >- > use_color=false > > # Set colorful PS1 only on colorful terminals. >@@ -76,9 +63,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 > > alias ls='ls --color=auto' >@@ -88,9 +75,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 > >diff -urN bash.orig/bashrc.d/00window-title.sh bash/bashrc.d/00window-title.sh >--- bash.orig/bashrc.d/00window-title.sh 1970-01-01 02:00:00.000000000 +0200 >+++ bash/bashrc.d/00window-title.sh 2015-07-06 18:18:10.074869940 +0200 >@@ -0,0 +1,9 @@ >+# Change the window title of X terminals >+case ${TERM} in >+ xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) >+ PS1="$PS1"'\[\033]0;\u@\h:\w\007\]' >+ ;; >+ screen*) >+ PS1="$PS1"'\[\033k\u@\h:\w\033\\\]' >+ ;; >+esac
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 554086
:
406262
|
406264