fish Verified for current stable LTS

Fish Command: Define And Export Environment Variable

Use for define and export environment variable with Fish. Exact CLI syntax to define and export environment variable using Fish.

When to use this: Use for define and export environment variable with Fish.

Command Syntax

set -U -x <variable_name> <variable_value>

Command Breakdown

-U
Command Option
Tool-specific option used by this command invocation.
-x
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to define and export environment variable using Fish.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Fish directory