As of fabric 1.5 (released), fabric.context_managers.shell_env
does what you want.
with shell_env(FOO1='BAR1', FOO2='BAR2', FOO3='BAR3'):
local("echo FOO1 is $FOO1")
As of fabric 1.5 (released), fabric.context_managers.shell_env
does what you want.
with shell_env(FOO1='BAR1', FOO2='BAR2', FOO3='BAR3'):
local("echo FOO1 is $FOO1")