delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/09/21:05:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: rxvt and path problems
Date: Sun, 09 Aug 2009 18:04:40 -0700
Lines: 73
Message-ID: <h5nrn9$3ao$1@ger.gmane.org>
References: <142977 DOT 2540 DOT qm AT web53603 DOT mail DOT re2 DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
In-Reply-To: <142977.2540.qm@web53603.mail.re2.yahoo.com>
X-Stationery: 0.4.9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Paul Tomsic wrote:
> Looks like I fixed this. Seems if i take off the rcfile option and 
> replace it w/ a "--login" option, all's good.
>
> Thanks
>
> --- On Sun, 8/9/09, Paul Tomsic <ptomsic AT yahoo DOT com> wrote:
>
>> From: Paul Tomsic <ptomsic AT yahoo DOT com>
>> Subject: rxvt and path problems
>> To: cygwin AT cygwin DOT com
>> Date: Sunday, August 9, 2009, 11:16 AM
>> Hi - I'm having trouble setting up
>> RXVT on WinXP.
>> I've got the following shortcut set up to launch RXVT:
>>
>> C:\viper\cygwin\bin\rxvt.exe -sl 1500 -fn "Lucida
>> Console-12" -bg black -fg yellow -sr -e bash --rcfile
>> "/cygdrive/c/viper/.bashrc"
>>
>> My $HOME directory is set to the following, as seen in the
>> RXVT:
>>
>> ptomsic:bin> echo $HOME
>> /cygdrive/c/viper
>>
>> and as seen in the DOS prompt:
>>
>> C:\>set HOME
>> HOME=/cygdrive/c/viper
>>
>> When I launch the shortcut for RXVT, all is good but it
>> opens in "/usr/bin"
>>
>> If i type `cd ~` then I lose my $PATH, or so it would
>> seem.  If i `echo $PATH` it looks like it's in tact,
>> but i can't do simple things, like `ls` or `which ping` or
>> `who`
>>
>> Why would it be okay when I first launch the RXVT shortcut,
>> but then simply changing to my $HOME directory causes
>> everything to start misbehaving?
>>
>> thanks - Paul
Also try:

$ cat >> ~/.Xresources <<END
Rxvt*saveLines: 1500
Rxvt*font: "Lucida Console-12"
Rxvt*loginShell: true
Rxvt*background: black
Rxvt*foregrouind: yellow
Rxvt*scrollBar_right: true
END

Add Cygwin's bin to the Windows System Environment Variable PATH and 
your above command reduces to: "rxvt".

Then you can get fancy and add:

$ cat >> ~/.Xresources <<END
machine1:background: midnightblue
machine1:foreground: green
machine2:background:navyblue
machine2:foreground: white
END

And then do things like rxvt -name machine1 -e ssh machine1 or -name 
machine2 -e ssh machine2 to identify which machines your on by color 
coding...
-- 
Andrew DeFaria <http://defaria.com>
When everything's coming your way, you're in the wrong lane.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019