This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to make persistent changes to PATH in cygwin?
- From: "Chloe" <starrychloe at oliveyou dot net>
- To: <cygwin at cygwin dot com>
- Cc: "\"Aaron Schneider\"" <notstop2 at users dot sourceforge dot net>
- Date: Tue, 29 Jan 2013 00:35:23 -0500
- Subject: Re: How to make persistent changes to PATH in cygwin?
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