Add alias -s/--save, which saves the alias.

Also updates the `alias` documentation to mention the `-h`/`--help` option,
which was previously undocumented.
This commit is contained in:
Thom Chiovoloni
2018-04-06 10:27:40 -07:00
committed by Fabian Homborg
parent 6c0f31d622
commit 25169a44ed
3 changed files with 13 additions and 3 deletions

View File

@@ -3,8 +3,8 @@
\subsection alias-synopsis Synopsis
\fish{synopsis}
alias
alias NAME DEFINITION
alias NAME=DEFINITION
alias [OPTIONS] NAME DEFINITION
alias [OPTIONS] NAME=DEFINITION
\endfish
\subsection alias-description Description
@@ -18,6 +18,12 @@ alias NAME=DEFINITION
You cannot create an alias to a function with the same name. Note that spaces need to be escaped in the call to `alias` just like at the command line, _even inside quoted parts_.
The following options are available:
- `-h` or `--help` displays help about using this command.
- `-s` or `--save` Automatically save the function created by the alias into your fish configuration directory using <a href='#funcsave'>funcsave</a>.
\subsection alias-example Example
The following code will create `rmi`, which runs `rm` with additional arguments on every invocation.