This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Problems Starting Xterm using the System Tray Icon for XWin Server
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 18 Feb 2010 10:34:56 -0500
- Subject: Re: Problems Starting Xterm using the System Tray Icon for XWin Server
- References: <d4133e471002180413u3cea3d3fu2976cc94eb9d9766@mail.gmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
On 2/18/2010 7:13 AM, Craig Moore wrote:
When I open a new xterm window using the XWin Server icon in the system tray:
(right click on icon)->Applications->xterm
it opens xterm, but the command prompt is not formatted correctly and
the window title is 'xterm' instaed of the current directory.
The command prompt looks like:
bash-3.2$
and should be
craig@laptop ~
$
How do I configure the XWin Server so that it opens xterm correctly?
This happens because xterm doesn't start a login shell, and PS1 gets
unset. One way around this is to set PS1 in your ~/.bashrc file. For
example:
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
Also, is there a way I can add a shortcut on my desktop to open a new
terminal window without having to type 'xterm' in the existing
terminal window or the system tray icon?
I use a shortcut with target
C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0
Ken
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/