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: change opening path

If you're the only one using Cygwin on your machine, try

echo "cd /cygdrive/c" >> /etc/profile

and then restart the Cygwin shell.

In the future, when you need to find out which package contains a
particular program, use the Cygwin package search page at
<> (it helps to prepend "bin/" to program
names, especially short ones like "vi").

On Wed, 1 Sep 2004, Tom Plane wrote:

> Thanks Dave.
> I tried this and got an error.
> bash: vi: command not found
> I did a default install.
> A little more help please.
> Tom
> -----Original Message-----
> From: J. David Boyd [mailto:dave@XXXXXX.XXX]
> Sent: Wednesday, September 01, 2004 10:48 AM
> To: Tom Plane
> Subject: Re: change opening path
> "Tom Plane" <tom@XXXXXXXX.XXX> writes:

To both you and Dave: <>.

> > I would love to try this but I don't know how to add the cd command to
> > the end of /etc/profile. Can you explain the steps to me?
> open a command prompt (bash)
> type: cd /etc
> type: vi profile
> press: 'G' to go the end
> press: 'A' to go to the end of the current line in insert mode
> press: enter to open a new line
> type: cd *path_to_wherever*
> type: :wq
> restart cygwin
> Dave

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Unsubscribe info:
Problem reports:

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