W3cubDocs

/Nushell

alias for core

Alias a command (with optional flags) to a new name.

Signature

> 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

>aliasll=ls-l

Notes

This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/alias.html