X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=S6WOs7S1FBfrubi1
	Qg0t0FfX5g/JxBFrFDH1ZzyHtYpwei4cEfT2GcWzpyqahWHEinSYTQKWYnvyqugb
	qgnFuNSaHM2TeE/+viNkKvq0p9E3at1cH+hwzSAeoTt+A9G3X0QSheWKcJhNfSlu
	pod71YCwF5ubEGLl2qe6cpG9Yew=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=XT4Wb6TAb8xC1vndqGCy0/
	2LGnU=; b=kx0CzIgVbEtbgsHHn1vJwg4ZkGTA525icccmd5i6auc8tZ+G3yEayR
	oJiwKkjgChHiLWhnnNPqwraCLb7h67qYhU9LkU0wSSCrubEtuqA8wjTi6FOc9C7x
	9wybERZL9CHxy3vib2HcBXICHOUJcr0Z1SfyCjdoOVaJsn08TRKXc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <530618D6.4030604@cs.umass.edu>
Date: Thu, 20 Feb 2014 10:01:42 -0500
From: Eliot Moss <moss@cs.umass.edu>
Reply-To: moss@cs.umass.edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Setup Path
References: <530600B8.6050504@mail.com> <0D835E9B9CD07F40A48423F80D3B5A702CDE5DF8@USA7109MB022.na.xerox.net>
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702CDE5DF8@USA7109MB022.na.xerox.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2/20/2014 8:34 AM, Nellis, Kenneth wrote:
> From: Todd Poole
>> Hi all
>> Really new to Cygwin. Is there a way to setup Cygwin so when I got to
>> terminal to type a command I don't have to enter the complete path as
>> shown here:
>>
>> $ cd /cygdrive/c/directory name
>>
>> Anyway to setup to where I might just enter
>>
>> $ c/directory name
>>
>> or something like it?
>
> I suggest you look into the CDPATH environment variable.

That would simplify what you type as an argument to the cd command.

If you are wanting to be able to invoke a command foo without typing
its whole path, then you need its directory in the PATH variable.
PATH in cygwin is similar to PATH on Windows, but the format is
more like Unix: / instead of \, : instead of ;, and so on.  The
command:

echo $PATH

will show you the default.  You can add a directory to be searched
after the default ones by doing something like:

PATH="${PATH}:additional-directory"

The quotes are important if anything in PATH has spaces or other "strange"
characters.

By the way, this is standard Unix / bash stuff.  cygwin kind of assumes that you
are familiar with Unix, since its purpose is to offer a Unix-like environment
on Windows.  (bash, the Bourne-again shell, is the default shell brought up in
a cygwin terminal window.)

Best wishes -- Eliot Moss

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

