set PATH=%path% code example Example: add path to $PATH PATH=$PATH:~/opt/bin # or PATH=~/opt/bin:$PATH