Cory Nezin
Cory Nezin

Reputation: 1581

How do I set an environment variable for a certain command?

For example, I must set https_proxy when using aws but not in other cases.

Upvotes: 0

Views: 13

Answers (1)

Cory Nezin
Cory Nezin

Reputation: 1581

In your ~/.bashrc you can write, for example

alias aws="https_proxy=YOURPROXY aws"

Upvotes: 1

Related Questions