On Tue, 1 Apr 2003 20:42:34 +0100 "John Morrison" <[EMAIL PROTECTED]> wrote:
> > 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 ;) I wasn't doing it for cygwin. I was doing it for gnu emacs (the Win32 native version). > 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. To recap, this same exact .bashrc file used to work, on my previous Windows(2000) machine. Now, on WinXP, it doesn't. In fact, even if I explicitly type "source~/.bashrc" at the shell prompt, it doesn't work. I don't get errors, but the aliases are not defined. That is the problem I've been seeing. I'd like to have some aliases for common commands, and I'd like to be able to set some environment variables, like adding some dirctories to my path. (These don't need to be in the Windows-wide path... just in Cygwin.) Also, copying .bashrc to .bash_profile and then starting a new bash shell doesn't work. If anyone can tell me how to define these aliases and environment variables, I'll be*very* grateful. > You can still set your HOME, there's nothing (that I know of!) wrong > with doing so. Igor suggested that my $HOME is set wrong, although everything worked on my old machine with this same setting. What should this be, and how should it get set? Thanks very much! -pd -- -------- Peter Davis Funny stuff at http://www.pfdstudio.com The artwork formerly shown as prints List of resources for children's writers and illustrators at: http://www.pfdstudio.com/cwrl.html -- 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/