delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/25/01:20:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: RE: RE[3]: How does one set aliases for Cygwin for XP Prof Windows - Still doesn't work! HELP!
Date: Sun, 24 Jul 2005 22:20:02 -0700
Message-ID: <9ED00E54321A9349A3A7B9C805C0984B04F4A33B@maui.shoretel.com>
From: "Patrick Sullivan" <PSullivan AT shoretel DOT com>
To: "Kazuyuki Hagiwara" <hagiwara AT zuken DOT co DOT jp>, <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6P5KJAs005942

Thanks Hagiwara,

I now have it working.  Thanks for the input and staying with me on
this...

Patrick//

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Kazuyuki Hagiwara
Sent: Sunday, July 24, 2005 9:25 PM
To: cygwin AT cygwin DOT com
Subject: RE: RE[3]: How does one set aliases for Cygwin for XP Prof
Windows - Still doesn't work! HELP!

Patrick,
Probably you have to change the HOME environment variable.
like
HOME=/cygdrive/c/users/shoreuser

The space character in HOME might cause the problem.
-----------
hagiwara


) -----Original Message-----
) From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On 
) Behalf Of Patrick Sullivan
) Sent: Monday, July 25, 2005 12:35 PM
) To: Kazuyuki Hagiwara; cygwin AT cygwin DOT com
) Subject: RE: RE[3]: How does one set aliases for Cygwin for XP 
) Prof Windows - Still doesn't work! HELP!
) 
) 
) 
) Hi Hagiwara and All,
) 
) How is .bashrc and/or .bash_profile run?  I don't think they are even
) run for me.  I think I remember that another file was where I put the
) aliases last time?
) 
) My home shows:
) 
) ----
) $ env | grep HOME
) HOMEPATH=\
) HOME=/cygdrive/c/Documents and Settings/shoreuser
) HOMEDRIVE=H:
) HOMESHARE=\\bigsur\PSullivan$
) 
) psullivan AT psullivan-gx280 /etc
) ----
) 
) and I have .bashrc file as:
) ----
) psullivan AT psullivan-gx280 ~
) $ pwd
) /cygdrive/c/Documents and Settings/shoreuser
) $ cat .bashrc
) alias ll='ls -l'
) alias h='history'
) alias main='cd /cygdrive/c/depot/source/main'
) alias ob2='cd /cygdrive/c/depot/Projects/ob2'
) alias depot='cd /cygdrive/c/depot'
) $ cat .bash_profile
) source ~/.bashrc
) psullivan AT psullivan-gx280 ~
) ----
) 
) Thanks,
) 
) Patrick//
) 
) 
) -----Original Message-----
) From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
Behalf
) Of Kazuyuki Hagiwara
) Sent: Sunday, July 24, 2005 8:11 PM
) To: cygwin AT cygwin DOT com
) Subject: RE: RE[3]: How does one set aliases for Cygwin for XP Prof
) Windows - Still doesn't work! HELP!
) 
) Hi Patric,
) have you set the  HOME environment variable ?
) This is used to determin the location of .bashrc.
) --
) hagiwara
) 
) ) -----Original Message-----
) ) From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On 
) ) Behalf Of Patrick Sullivan
) ) Sent: Monday, July 25, 2005 11:58 AM
) ) To: Baksik, Frederick (NM75); cygwin AT cygwin DOT com
) ) Subject: RE[3]: How does one set aliases for Cygwin for XP Prof 
) ) Windows - Still doesn't work! HELP!
) ) 
) ) 
) ) Hi Frodak and All,
) ) 
) ) I created the ~/.bash_profile file (it wasn't even there before!),
and
) ) tried sourcing ~/.bashrc from it.  It still doesn't work.  I don't
) think
) ) these files are ever executed during my cygwin session.  I don't
know
) ) whether I use bash or not.  I simply installed it from my PC.  Is
) there
) ) another type of configuration besides bash, where there is a
different
) ) file to modify to contain my aliases?  Please help if you can,
) ) 
) ) 
) ) Thanks,
) ) 
) ) Pat//
) ) 
) ) -----Original Message-----
) ) From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
) Behalf
) ) Of Baksik, Frederick (NM75)
) ) Sent: Friday, July 22, 2005 6:53 PM
) ) To: cygwin AT cygwin DOT com
) ) Subject: [BULK] RE: RE[2]: How does one set aliases for Cygwin for
XP
) ) Prof Window s? - Still doesn't work!
) ) Importance: Low
) ) 
) )  
) ) 
) ) > -----Original Message-----
) ) > From: cygwin-owner Behalf Of Patrick Sullivan
) ) > Sent: Friday, July 22, 2005 7:19 PM
) ) > To: cygwin
) ) > Subject: RE[2]: How does one set aliases for Cygwin for XP 
) ) > Prof Windows? - Still doesn't work!
) ) > Importance: Low
) ) > 
) ) > Ken,
) ) > 
) ) > It still doesn't work after putting the aliases in ~/.bashrc  )-:
) ) > I also tried putting them in ~/profile.ksh but it didn't work
) either.
) ) > I did this one time, and there was a file in a certain 
) ) > location where I added them to, but I don't remember where it
was...
) ) > 
) ) > I tried putting them in as follows:
) ) > 
) ) > alias ll='ls -l'
) ) > alias h='history'
) ) > alias main='cd /cygdrive/c/depot/source/main'
) ) > alias ob2='cd /cygdrive/c/depot/Projects/ob2'
) ) > alias depot='cd /cygdrive/c/depot'
) ) 
) ) ~/.bashrc is only sourced by bash on non-login interactive shells
) ) ~/.bash_profile is only source by bash on login interactive shells
) ) 
) ) If you have your aliases in ~/.bashrc you need to add the following
) line
) ) to
) ) ~/.bash_profile
) ) Source ~/.bashrc
) ) 
) ) Further examples can be taken from the files located in /etc/skel.
) ) 
) ) Also look at the man bash page under INVOCATION.
) ) 
) ) --
) ) Frodak
) ) 
) ) --
) ) Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
) ) Problem reports:       http://cygwin.com/problems.html
) ) Documentation:         http://cygwin.com/docs.html
) ) FAQ:                   http://cygwin.com/faq/
) ) 
) ) 
) ) 
) ) --
) ) Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
) ) Problem reports:       http://cygwin.com/problems.html
) ) Documentation:         http://cygwin.com/docs.html
) ) FAQ:                   http://cygwin.com/faq/
) ) 
) ) 
) 
) --
) Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
) Problem reports:       http://cygwin.com/problems.html
) Documentation:         http://cygwin.com/docs.html
) FAQ:                   http://cygwin.com/faq/
) 
) 
) 
) --
) Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
) Problem reports:       http://cygwin.com/problems.html
) Documentation:         http://cygwin.com/docs.html
) FAQ:                   http://cygwin.com/faq/
) 
) 

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



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


- Raw text -


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