Solved

Where is the .bash_profile located in cygwin

Posted on 2008-10-02
8
1,099 Views
Last Modified: 2013-11-15
Where is the .bash_profile located in cygwin?
0
Comment
Question by:dplinnane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 200 total points
ID: 22627555
Where it always is: in the root of your home folder. I don't think one is created during setup though, so you must create it yourself.
0
 

Author Comment

by:dplinnane
ID: 22627962
So it should be in HOME=/cygdrive/c/Documents and Settings/jsmith    where the .bashrc is located?
0
 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
ID: 22628003
Yes. I presume that is where your home folder is? You can find out by using pwd after starting up the bash prompt. I've moved my home folder myself.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
ID: 22628069
Or just create it, put in an "echo This works" statement in there and startup a new console, of course :)
0
 

Author Comment

by:dplinnane
ID: 22629086
when I do printenv I see lots of variables where are they stored?
0
 
LVL 9

Assisted Solution

by:mbodewes
mbodewes earned 200 total points
ID: 22629408
Oh, they are generated from everywhere and anywhere. Some values are from the registry, some are environment settings also available in Windows/DOS. Some are adjusted DOS variables (like the PATH) environment. Some are just created by cygwin itself (such as the TERM variable). Normally you don't "store" environment variables.

0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 50 total points
ID: 22638485
To create it, just do

echo 'some contents' >>~/.bash_profile
0
 

Author Closing Comment

by:dplinnane
ID: 31502517
Thanks guys.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Viewers will learn how to use the Hootsuite Dashboard.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question