Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Kazuyuki Hagiwara" To: Subject: RE: RE[3]: How does one set aliases for Cygwin for XP Prof Windows - Still doesn't work! HELP! Date: Mon, 25 Jul 2005 12:10:39 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <9ED00E54321A9349A3A7B9C805C0984B04F4A30C@maui.shoretel.com> X-IsSubscribed: yes 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/