delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/29/00:44:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_50,FAKE_REPLY_C,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO
X-Spam-Check-By: sourceware.org
Message-ID: <CB846E7B494D45C4B4E801EA5A90A5A0@dumbopc>
From: "Chloe" <starrychloe AT oliveyou DOT net>
To: <cygwin AT cygwin DOT com>
Cc: "\"Aaron Schneider\"" <notstop2 AT users DOT sourceforge DOT net>
Subject: Re: How to make persistent changes to PATH in cygwin?
Date: Tue, 29 Jan 2013 00:35:23 -0500
MIME-Version: 1.0
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

Try this:

$ echo 'export PATH=$PATH:/newpath' >> ~/.bashrc

You can also edit your .bashrc file too. Here is an example line from the 
.bashrc

export PATH=$PATH:"/cygdrive/c/Program Files/Notepad++"

Here is a bonus useful thing

alias splitpath="echo \$PATH | cut -d: -f1- --output-delimiter=$'\n'"



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