set -x VARIABLE_NAME /your/path/here

Say you want to append to $PATH,

set -x PATH /new/path $PATH

Note

We use $PATH as we want to append and not overwrite