in cygwin:

PATH=$PATH:~/your_path

or

PATH=~/your_path:$PATH

Add path windows

PATH=%PATH%;C:\Your_Path;