delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/18/10:56:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <52deb1e0802180755o473ecb81w99ffc00f94d71a51@mail.gmail.com>
Date: Mon, 18 Feb 2008 10:55:25 -0500
From: "Glen Mazza" <glen DOT mazza AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to set default startup directory for cygwin
In-Reply-To: <005101c8723d$05f6efe0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <52deb1e0802180634h5a228bclc7a621fa1e4f7c7 AT mail DOT gmail DOT com> <005101c8723d$05f6efe0$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 18, 2008 9:46 AM, Dave Korn <dave DOT korn AT artimi DOT com> wrote:
>
> On 18 February 2008 14:34, Glen Mazza wrote:
>
> > Hello,
> >
> > I looked in the FAQ and could not find the answer to this question, so
> > am asking here.  Whenever I start cygwin, I need to cd several levels
> > down to the only directory that I care about when using cygwin.  How
> > can I get cygwin to start in this particular directory by
> > default...i.e., each time I start Cygwin it will be in that directory
> > already?  Cygwin seems to ignore the "Start In: " option in the
> > Windows Preferences for this application.
>
>   Well not exactly, the problem is twofold:
>
> 1.  When you double-click the cygwin icon, you're invoking a batch file,
> Cygwin.bat, which has the job of starting up bash, and the first thing it does
> is change directory.  So cygwin doesn't "ignore" the "start in" option, but
> straight away changes to somewhere else (the /bin dir) anyway.
>
> 2.  When your bash shell is launched, it changes to your $HOME dir anyway.
>
>   Your simplest bet is probably to add "cd <whereever>" as the last line of
> ~/.bashrc.
>

Do you mean cygwin.bat?  I'm using Windows, so I don't think I have a
~/.bashrc file.

Glen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019