Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10003 Details for
Bug 18456
Small change to /etc/profile to make xterm titlebars update properly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Here's the patch as a file (didn't see attachment on the new bug page)
profile.patch (text/plain), 938 bytes, created by
Patrick McLean
on 2003-03-29 20:03:56 UTC
(
hide
)
Description:
Here's the patch as a file (didn't see attachment on the new bug page)
Filename:
MIME Type:
Creator:
Patrick McLean
Created:
2003-03-29 20:03:56 UTC
Size:
938 bytes
patch
obsolete
>--- oldprofile 2003-03-29 20:01:38.000000000 -0500 >+++ profile 2003-03-29 20:01:56.000000000 -0500 >@@ -13,13 +13,21 @@ > then > if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] > then >- export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ if [ "$TERM" = "xterm" ]; then >+ export PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ else >+ export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ fi > fi > export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}" > else > if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] > then >- export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ if [ "$TERM" = "xterm" ]; then >+ export PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ else >+ export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' >+ fi > fi > export PATH="/bin:/usr/bin:${PATH}" > 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 Raw
Actions:
View
Attachments on
bug 18456
: 10003 |
10004