Start-up files for bash?

Horia F Pop hfpop@iname.com
Fri Mar 14 21:00:00 GMT 1997


Leonard Sisson wrote:
> 
> I have just installed the Cygnus Win32 utility binaries including Bash under
> Win 95.  A few years ago I had & helped do admin on a Sun Sparc system and
> used mostly csh.  As I recall, we had both system startup and individual
> login startup (something like .cshrc, .profile?) files as well as such files
> as some in an /etc directory (hosts & others).  I assume such startup files
> are implemented for the Win 32 port of Bash, but I haven't run across the
> documentation on how to do that yet.  Can anyone tell me where I can find
> that info?

Well, you will have to do the following:

(1) Prepare a batch file, let's say go-bash.bat with the following
contents:

set PATH=c:\cygnus\H-i386-cygwin32\bin;%PATH%
set HOME=c:\myfiles
bash

Of course you will modify the paths according to your situation.

(2) In your 'home' directory as given by the %HOME% variable you will
need the following files:

.bashrc		 will be sourced at the start of non-login shells
.bash_profile    will be sourced at login 
.bash_logout     will be sourced at logout

Be careful as the .bash* files need to be Unix-type ASCII files, not
Dos-type.

(3) For more info see the file c:\cygnus\man\man1\bash.1

I hope this helps.

Horia Pop

-------------------------------------------------------------------
Dr. Horia F. Pop, Lecturer Professor	Phone:	+40-64-194.315/154
Department of Computer Science		Fax:	+40-64-191.906
"Babes-Bolyai" University, Cluj, RO	Home:	+40-64-197.254
http://www.cs.ubbcluj.ro/~hfpop		E-mail:	hfpop@cs.ubbcluj.ro
http://www.geocities.com/CapeCanaveral/9645	hfpop@iname.com
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list