How to set proxy on OS X Terminal permanently?
Your http proxy (just for some web sites not https ones and not for the rest of the internet) can be set for each terminal session by adding the line

export http_proxy="username:password@ip address:port number"


to your ~/.bash_profile file

Note this will only affect command line programs.