delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/23/07:34:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <8C6D4989662C304087C58904BAB721A54B7331@hermes.astrum.de>
From: Harald Kierer <Harald DOT Kierer AT astrum DOT de>
To: =?iso-8859-1?Q?=27Maur=EDcio=27?= <briqueabraque AT yahoo DOT com>,
cygwin AT cygwin DOT com
Subject: Re: Starting bash in directory
Date: Thu, 23 Jan 2003 13:34:29 +0100
MIME-Version: 1.0

>    Cygwin installation creates a shortcut that runs bash like this:
> 
> bash -i --login
> 
>    However, I would like to start bash so that after starting 
> it would 
> go to a specific directory. For instance, I would like to run 
> something 
> like:
> 
> bash -i --login "cd d:\users"
> 
> so that bash would start and then execute "cd d:\users" 
> before the user 
> starts typing anything. This would be equivalent to the WinNT command:
> 
> cmd /k "cd d:\users"
> 
>    Do you guys know if that's possible?

The bottom line of "/etc/profile" says "cd $HOME". Just change it to
what you want.
cd /cygdrive/d/users


Bye,
 Harry

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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