shell set environment variable

Shell
export VARNAME="my value"      # shorter, less portable version
Source

Also in Shell: