Depends on what system you're on really. You should be able to do it in network preferences or you could export it in your local shell.
Unfortunately many utilities don't support SOCKS or have non-standard flags, so you would need a wrapping program like tsocks to force TCP through your proxy.