\section set set - Handle environment variables.

\subsection set-synopsis Synopsis
Syntax: <tt>set [OPTIONS] VARIABLE_NAME [VALUE]</tt>

The <tt>set</tt> builtin causes fish to assign the variable <tt>VARIABLE_NAME</tt> the value <tt>VALUE</tt>. 

\subsection set-description Description
- <tt>-e</tt> or <tt>--erase</tt> causes the specified environment variable to be erased.
- <tt>-x</tt> or <tt>--export</tt> causes the specified environment variable to be exported to subprocesses.
- <tt>-g</tt> or <tt>--global</tt> causes the specified environment variable to be made global. If this option is not supplied, the specified variable will dissapear when the current block ends.
- <tt>-l</tt> or <tt>--local</tt> forces the specified environment variable to be made local to the current block, even if the variable already exists and is non-local.

If set is called with no options, the names and values of all environment variables are printed.

If set is called with only a variable name, but no value. The scope of the variable will be changed as specified, but it's value will remain the same.

\subsection set-example Example

<tt>set foo hi</tt> sets the value of the variable foo to be hi.

<tt>set -e smurf</tt> removes the variable \c smurf.
