How does one set aliases for Cygwin for XP Prof Window s? - Still doesn't work!
Baksik, Frederick (NM75)
frederick.baksik@honeywell.com
Sat Jul 23 02:21:00 GMT 2005
> -----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/
More information about the Cygwin
mailing list