Mail Archives: cygwin/2003/04/01/14:47:42
> 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/
- Raw text -