Aliases in Nushell offer a way of doing a simple, textual replacement. This allows you to create a shorthand name for a longer command, including its default arguments.
For example, let's create an alias called
ll which will expand to
> alias ll = ls -l
We can now call this alias:
Once we do, it's as if we typed
ls -l. This also allows us to pass in flags or positional parameters. For example, we can now also write:
> ll -a
And get the equivalent to having typed
ls -l -a.
For information about how to persist aliases so that they're visible when you start up Nushell, see the configuration chapter and add your aliases to the