How to set a proxy for terminal without exporting the environment variable?
I am using a Ubuntu machine and I would like to do that?
If it not possible, are there any apps to help me do that?
Thank you.
How to set a proxy for terminal without exporting the environment variable?
I am using a Ubuntu machine and I would like to do that?
If it not possible, are there any apps to help me do that?
Thank you.
You can always set up the variable just for the command you want to run, for instance, you can do the following:
$ HTTPS_PROXY=http://localhost:3128 curl https://external.domain.com/
And curl will use the HTTPS_PROXY defined right there and only once.
If you want to set the environment variable, it will work for the whole Terminal Session, but not for any other user/system - it won't affect your cron jobs, for instance.