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
cr...@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\...@\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/