Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122495 - bash /etc/skel/.bashrc: set xterm title when TERM=aterm,kterm,gnome
Summary: bash /etc/skel/.bashrc: set xterm title when TERM=aterm,kterm,gnome
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-11 13:36 UTC by Ed Catmur
Modified: 2006-02-11 14:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bash-dot-bashrc-xterm-title-gnome.patch (bash-dot-bashrc-xterm-title-gnome.patch,416 bytes, patch)
2006-02-11 13:37 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-02-11 13:36:49 UTC
Currently /etc/skel/.bashrc has:

# Change the window title of X terminals
case $TERM in
        xterm*|rxvt*|Eterm)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
                ;;
        screen)
                PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
                ;;
esac

aterm and kterm could be added to the list.

Also, from 2.14 gnome-terminal will set TERM="gnome" (currently "xterm"). (dang has confirmed this.) To be ready for this change, gnome will need to be added to the list.

I attach a patch (to app-shells/bash/files/dot-bashrc).
Comment 1 Ed Catmur 2006-02-11 13:37:17 UTC
Created attachment 79524 [details, diff]
bash-dot-bashrc-xterm-title-gnome.patch
Comment 2 SpanKY gentoo-dev 2006-02-11 14:59:54 UTC
> aterm and kterm could be added to the list.

done

> Also, from 2.14 gnome-terminal will set TERM="gnome" (currently "xterm").

i know, i gave them the patch to fix that :p