mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
docs/tutorial: Mention alias
This came up online - here we exclaim that fish has no aliases (which is true), but then in the main docs we explain that you can use `alias` to make something (which is also true). Add a foot note explaining the apparent contradiction.
This commit is contained in:
parent
09161761c1
commit
5b366b9cb5
1 changed files with 2 additions and 1 deletions
|
@ -556,7 +556,7 @@ A fish function is a list of commands, which may optionally take arguments. Unli
|
||||||
Hello everybody!
|
Hello everybody!
|
||||||
|
|
||||||
|
|
||||||
Unlike other shells, fish does not have aliases or special prompt syntax. Functions take their place.
|
Unlike other shells, fish does not have aliases or special prompt syntax. Functions take their place. [#]_
|
||||||
|
|
||||||
You can list the names of all functions with the :ref:`functions <cmd-functions>` builtin (note the plural!). fish starts out with a number of functions::
|
You can list the names of all functions with the :ref:`functions <cmd-functions>` builtin (note the plural!). fish starts out with a number of functions::
|
||||||
|
|
||||||
|
@ -571,6 +571,7 @@ You can see the source for any function by passing its name to ``functions``::
|
||||||
command ls -G $argv
|
command ls -G $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
.. [#] There is a function called :ref:`alias <cmd-alias>`, but it's just a shortcut to make functions.
|
||||||
|
|
||||||
Loops
|
Loops
|
||||||
-----
|
-----
|
||||||
|
|
Loading…
Reference in a new issue