OSX equivalent for ~/bin in Linux
There is none by default in OSX.  But you can make a ~/bin folder, then edit your ~/.profile and add

export PATH=$PATH:/Users/Yourname/bin


(Yourname of course being replaced by your username).

or (edited later according to below comment)

export PATH=$PATH:~/bin