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: "John Morrison" To: "Cygwin" Subject: RE: Aliases no longer defined? Date: Tue, 1 Apr 2003 20:45:48 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal > From: John Morrison > > From: Peter Davis > > > > What should it be? I explicitly set HOME to be C:\home in Windows, > > for the benefit of emacs, etc. I've done this for years, so it seems > > to be unrelated to the current problem. In fact, I just checked, and > > the results of these commands are the same on my old Win2000 machine, > > where .bashrc worked. > > Hi, > > You don't actually need to explicitly set HOME anymore, cygwin's > come on over the years ;) > > Somebody (pardon - I've deleted the mail) correctly said, you need > to add a . ~/.bashrc (or use source rather than .) to your ~/.bash_profile > > Cygwin doesn't run ~/.bashrc by default - as the bash manual recommends. > It's on the 'todo' list to create a skeleton ~/.bash_profile, but I've > not got round to making it work correctly, sorry. > > Oh, and alias in ~/.bash_profile doesn't (I believe) work, don't know > why. > > You can still set your HOME, there's nothing (that I know of!) wrong > with doing so. > > J. PS, here's my ~/.bash_profile... $ cat .bash_profile # ~/.bash_profile: executed by bash for login shells. if [ -f /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi if [ -f ~/.bashrc ] ; then source ~/.bashrc fi and my ~/.bashrc $ cat .bashrc # BASH initialisation file # dos ALIAS instructions alias ls="ls --color" alias mkdir="mkdir -p" alias dir="ls -l --color" alias dir/w="ls --color" alias cd..="cd .." alias ..="cd .." alias title="cmd /c title" alias xargs="xargs --no-run-if-empty" alias ssh="ssh -C" alias scp="scp -C" Hope this helps, J. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/