Cygwin PATH setup

In cases where you don’t have admin privileges to setup the Environment Variables of your Windows machine, Cygwin can come to the rescue aside from all the other UNIX goodies it can provide.

To add directories in the system PATH variable append anything similar to the followings at the end of the {cygwin}/etc/profile file:

DEVSRC_HOME="/cygdrive/c/MyProgs/SoftProjProgs"
PATH=$DEVSRC_HOME:$PATH

JAVA_HOME="/cygdrive/c/MyProgs/java/jdk1.6.0_02"
PATH=$JAVA_HOME/bin:$PATH

GROOVY_HOME="/cygdrive/c/MyProgs/groovy-1.6.5"
PATH=$GROOVY_HOME/bin:$PATH

GRAILS_HOME="/cygdrive/c/MyProgs/grails-1.3.3"
PATH=$GRAILS_HOME/bin:$PATH

TNSNAMES="/cygdrive/c/oracle/ora92/network/ADMIN"
PATH=$TNSNAMES:$PATH

ANT_HOME="/cygdrive/c/MyProgs/apache-ant-1.8.1"
PATH=$ANT_HOME/bin:$PATH

Restart your Cygwin session and these additions to the PATH variable should exist for all future Cygwin sessions.

Advertisements