open terminal, put yourself in your home dir with

~/

open your profile with

nano .bash_profile

on a new line add

export CUSTOM_PATH=/Users/me/target_directory

control+o, then control+x to save and exit the file

restart machine

enjoi