delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/02/14:02:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_SPAMHAUS_DROP,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-EIP: [YlfWMsNUv9LYT5Pj783YtpZg971ne1Sr]
Message-ID: <BLU0-SMTP46485394BE665BEB853137CE220@phx.gbl>
Date: Wed, 2 Jan 2013 20:01:49 +0100
From: Aaron Schneider <notstop2 AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: adding a folder to my path
References: <50E46BDD DOT 9000603 AT molconn DOT com>
In-Reply-To: <50E46BDD.9000603@molconn.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 02/01/2013 18:18, LMH wrote:
> I think this is a cygwin question, though it is certainly a general
> linux question as well. I would like to divide up and organize some of
> the apps and links in my path directories (such as /usr/local/bin) into
> sub directories. If I add a folder to /usr/local/bin, that folder is not
> in my path. Can someone give me the instructions for adding a folder
> such as /usr/local/bin/ruby_viewer/ to my path?

As stated here: http://cygwin.com/ml/cygwin/2013-01/msg00023.html
you can do it two ways

1) Add /usr/local/bin/ruby_viewer/ to your profile:
$ echo 'PATH=`echo $PATH`:/usr/local/bin/ruby_viewer/' >> 
$HOME/.bash_profile

2) Add it directly to Windows' path:
Start > Control Panel > System > Advanced system settings > Advanced > 
Environment variables > PATH > Edit > Add to the end

;C:\cygwin\usr\local\bin\ruby_viewer

--
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

- Raw text -


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