This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: customizing bash kirjoitti:

I am a new cygwin user. I am not able to locate the .profile, .login .bashrc etc bash files, so I can use it to customize bash. I understand from various installation instruction that I red that the HOME env variable needs to be set for this. I followed the instructions given in many cygwin guides and install docs and updated my HOME environment variable both in my Windows system environment variable tab as

HOME=C:\Documents and Settings\vshastri

And updated in cygwin.bat as follows before starting the bash shell:

@echo off

chdir C:\cygwin\bin
set HOME=C:\Documents and Settings\vshastri

bash --login –i

I verified my update when I printed my environment variables and got the following (only showing relevant fields):

$ env



ALLUSERSPROFILE=C:\Documents and Settings\All Users


APPDATA=C:\Documents and Settings\vshastri\Application Data


COMMONPROGRAMFILES=C:\Program Files\Common Files




HOME=/cygdrive/c/Documents and Settings/vshastri


HOMEPATH=\Documents and Settings\vshastri





Despite all these setup, I am still not able to see the creation of .profile, .login etc

Please Help. How do I setup and access these files so I can ustomize my shell?


Well, you have to create files by yourself with your favourite editor.

If you really need basic files:
cp /etc/skel/* ~
chown `echo $USER`: .bash_profile .bashrc .inputrc


Jani Tiainen

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]