i did a little patch for tsocks to allow to override the proxy given in the config file with an environment variable. this is very useful for me, because sometimes i have more than one socks tunnel open (using SSH). if you want to override the configured proxy, just do something like this:
to use localhost:8888 as socks proxy.
i did the patch against tsocks-1.8beta5.