![]() |
|
|
|||
|
urxvt issue on Mandriva 2008.1
Installed 2008.1 on a new workstation today. I'm used to having the
current path show up in the title bar of the window for Xterm and rxvt, and those two still work that way in 2008.1. However, urpmi rxvt-unicode urxvt & Shows the right prompt within the window, but just "urxvt" on the title. Moreover for both rxvt and xterm: % set | grep PROMPT PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' but in a urxvt window: % set | grep PROMPT (nothing) That string gets set in /etc/bashrc and is conditional on TERM being "xterm". Sure enough, urxvt_set has TERM=rxvt-unicode Manually doing in an urxvt window: export PROMPT_COMMAND=\ 'echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' Sets the display as desired. Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another case for rxvt-unicode, or should rxvt-unicode set TERM to xterm??? Regards, David Mathog |
|
|||
|
Re: urxvt issue on Mandriva 2008.1
On Friday 27 June 2008 00:43, someone who identifies as *David Mathog* wrote
in /alt.os.linux.mandriva:/ > Installed 2008.1 on a new workstation today. I'm used to having the > current path show up in the title bar of the window for Xterm and rxvt, > and those two still work that way in 2008.1. However, > > urpmi rxvt-unicode > urxvt & > > Shows the right prompt within the window, but just "urxvt" on the title. > Moreover for both rxvt and xterm: > > % set | grep PROMPT > PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' > > but in a urxvt window: > > % set | grep PROMPT > (nothing) > > That string gets set in /etc/bashrc and is conditional on TERM > being "xterm". Sure enough, urxvt_set has > > TERM=rxvt-unicode > > Manually doing in an urxvt window: > > export PROMPT_COMMAND=\ > 'echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' > > Sets the display as desired. > > Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another > case for rxvt-unicode, or should rxvt-unicode set TERM to xterm??? Okay, it is quite possible that I'm grossly wrong, but the prompt you are showing is a percent sign, which indicates that you're using /tcsh/ or some other variant of the C-shell. */etc/bashrc* is the runtime configuration file for /bash,/ the Bourne Again SHell. See what I'm talking about? :p -- *Aragorn* (registered GNU/Linux user #223157) |
|
|||
|
Re: urxvt issue on Mandriva 2008.1
Aragorn wrote:
> On Friday 27 June 2008 00:43, someone who identifies as *David Mathog* wrote > in /alt.os.linux.mandriva:/ > >> Installed 2008.1 on a new workstation today. I'm used to having the >> current path show up in the title bar of the window for Xterm and rxvt, >> and those two still work that way in 2008.1. However, >> >> urpmi rxvt-unicode >> urxvt & >> >> Shows the right prompt within the window, but just "urxvt" on the title. >> Moreover for both rxvt and xterm: >> >> % set | grep PROMPT >> PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' >> >> but in a urxvt window: >> >> % set | grep PROMPT >> (nothing) >> >> That string gets set in /etc/bashrc and is conditional on TERM >> being "xterm". Sure enough, urxvt_set has >> >> TERM=rxvt-unicode >> >> Manually doing in an urxvt window: >> >> export PROMPT_COMMAND=\ >> 'echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' >> >> Sets the display as desired. >> >> Where is the bug? Should /etc/bashrc from Mandriva 2008.1 have another >> case for rxvt-unicode, or should rxvt-unicode set TERM to xterm??? > > Okay, it is quite possible that I'm grossly wrong, but the prompt you are > showing is a percent sign, which indicates that you're using /tcsh/ or some > other variant of the C-shell. */etc/bashrc* is the runtime configuration > file for /bash,/ the Bourne Again SHell. See what I'm talking about? :p > I see, but that isn't it. The shell is bash in all 3 cases. I got into the habit many years ago of posting commands with a % in front of them so that they could be easily distinguished from a comment marked with an #. Regards, David Mathog |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|