Bash command line env vars Bash command line env vars shell shell

Bash command line env vars


The rule of thumb with aliases is "if you have to ask, use a function instead". Since command clashes with a builtin, I'll call your command foo:

foo() { clear && command foo "$@"; }ENV_ONE=1 ENV_TWO=2 foo

This works as expected.