search by tags

for the user

adventures into the land of the command line

environment variables

you can view all the current environment variables with

$ env
$ env | grep SOMETHING

you can add new environment variables like so

$ export NAME=value

and remove them like this

$ unset NAME

this will only last for your session. if you want it to be always available, you need to declare it on startup. to do this, add the line into you ~/.bash_profile

a good scenario for wanting to do this might be to add a HTTP_PROXY
you could do something like

$ vim ~/.bash_profile

export HTTP_PROXY=user:[email protected]:8080
export HTTPS_PROXY=user:[email protected]:8080

or whatever…