export alias
For core.
Alias a command (with optional flags) to a new name and export it from a module.
Command Type
keyword
Signature
> export alias {flags} (name) (initial_value)
Parameters
name: Name of the alias.initial_value: Equals sign followed by value.
Input/output types:
| input | output |
|---|---|
| nothing | nothing |
Examples
Alias ll to ls -l and export it from a module.
> module spam { export alias ll = ls -l }
Notes
This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.