delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <29842033.post@talk.nabble.com> |
References: | <29842033 DOT post AT talk DOT nabble DOT com> |
Date: | Wed, 29 Sep 2010 21:47:19 +0200 |
Message-ID: | <AANLkTi=Me7gC=q0nRtzC-yVtnsg6Uy08w7UnORS4KpL4@mail.gmail.com> |
Subject: | Re: How to set default $PATH without adding Windows path? |
From: | Al <oss DOT elmar AT googlemail DOT com> |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
2010/9/29 cygwindummy <liumrb AT gmail DOT com>: > > Cygwin and Cygwin-X terminals always have default $PATH containing all the > Windows paths. This gives many problems both in the terminals running > command line commands and also NetBeans IDE. How to change the default $PATH > so it does not contain any Windows paths? i.e. just > /usr/local/bin:/usr/bin:/bin Permanently for the whole system echo "PATH=/usr/local/bin:/usr/bin:/bin" >> /etc/profile && source /etc/profile Permanently for one user: echo "PATH=/usr/local/bin:/usr/bin:/bin" >> ~/.bashrc && source ~/.bashrc Temporary for a single program start: env PATH=/usr/local/bin:/usr/bin:/bin netbeans.exe Permanetly for one program: echo "export PATH=/usr/local/bin:/usr/bin:/bin" >> netbeans-starter.bsh echo "netbeans.exe" >> netbeans-starter.bsh chmod +x netbeans-starter.bsh Adapt the names to your needs. Al -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |