mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
slog through documentation
I did.. a and b today.
This commit is contained in:
@@ -6,11 +6,9 @@ alias - create a function
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
alias
|
||||
alias [OPTIONS] NAME DEFINITION
|
||||
alias [OPTIONS] NAME=DEFINITION
|
||||
| ``alias``
|
||||
| ``alias`` [*OPTIONS*] *NAME* *DEFINITION*
|
||||
| ``alias`` [*OPTIONS*] *NAME*=*DEFINITION*
|
||||
|
||||
|
||||
Description
|
||||
@@ -27,17 +25,15 @@ You cannot create an alias to a function with the same name. Note that spaces ne
|
||||
|
||||
The following options are available:
|
||||
|
||||
- ``-h`` or ``--help`` displays help about using this command.
|
||||
- **-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 :ref:`funcsave <cmd-funcsave>`.
|
||||
- **-s** or **--save** Automatically save the function created by the alias into your fish configuration directory using :ref:`funcsave <cmd-funcsave>`.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
The following code will create ``rmi``, which runs ``rm`` with additional arguments on every invocation.
|
||||
|
||||
|
||||
|
||||
::
|
||||
|
||||
alias rmi="rm -i"
|
||||
|
||||
Reference in New Issue
Block a user