[Bug 103929] Re: Bash prompt string looks for xterm-color, gnome terminal identifies as xterm
Omer F. USTA
omerusta at gmail.com
Mon Jun 4 07:49:01 UTC 2012
This must solve the problem i think. Instead of asking user about color prompt
i think we must ask them for non-colored prompt.
The patch is added
** Patch added: "patch for colored and non-colored term"
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/103929/+attachment/3174568/+files/colorlessPrompt.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/103929
Title:
Bash prompt string looks for xterm-color, gnome terminal identifies as
xterm
Status in “bash” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: bash
Gnome-terminal, the default ubuntu terminal, supports color. It
identifies itself as "xterm". Our skel files looks for "xterm-color".
This should be updated to reflect "xterm" instead of "xterm-color".
In /etc/skel/.bashrc please apply the following diff:
--- .bashrc 2007-01-08 12:40:24.000000000 -0500
+++ .bashrc_new 2007-04-06 18:57:17.000000000 -0400
@@ -24,7 +24,7 @@
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
-xterm-color)
+xterm)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
*)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/103929/+subscriptions
More information about the foundations-bugs
mailing list