OPSCODE_USER=corp-username ORGNAME=chef COOKBOOK_COPYRIGHT='Full Name Here' COOKBOOK_EMAIL='username@example.com' export OPSCODE_USER ORGNAME COOKBOOK_COPYRIGHT COOKBOOK_EMAIL # reset knife variables to "corporate" after running "ginsu" function function knife-reset { OPSCODE_USER=corp-username ORGNAME=chef export OPSCODE_USER ORGNAME } # knife alias, "ginsu" for interacting with api.opscode.com function ginsu { OPSCODE_USER=opscode-username ORGNAME=corporate export OPSCODE_USER ORGNAME knife "$@" }