How to set proxy on OS X Terminal permanently? For every new session in OS X terminal, I have to make my proxy settings again.  I do this by entering the command

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


Is there a way to make these proxy settings once for all?
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.