This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]