mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
docs: More references
Including two more href.
This commit is contained in:
parent
127c0e9764
commit
ac61d3f34d
3 changed files with 6 additions and 8 deletions
|
@ -27,8 +27,7 @@ Synopsis
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
For an introduction to specifying completions, see <a
|
For an introduction to specifying completions, see :ref:`Writing your own completions <completion-own>` in
|
||||||
href='index.html#completion-own'>Writing your own completions</a> in
|
|
||||||
the fish manual.
|
the fish manual.
|
||||||
|
|
||||||
- ``COMMAND`` is the name of the command for which to add a completion.
|
- ``COMMAND`` is the name of the command for which to add a completion.
|
||||||
|
|
|
@ -146,15 +146,14 @@ A global variable of the same name already exists.
|
||||||
|
|
||||||
Environment variables such as ``EDITOR`` or ``TZ`` can be set universally using ``set -Ux``. However, if
|
Environment variables such as ``EDITOR`` or ``TZ`` can be set universally using ``set -Ux``. However, if
|
||||||
there is an environment variable already set before fish starts (such as by login scripts or system
|
there is an environment variable already set before fish starts (such as by login scripts or system
|
||||||
administrators), it is imported into fish as a global variable. The <a
|
administrators), it is imported into fish as a global variable. The :ref:`variable scopes <variables-scope>` are searched from the "inside out", which
|
||||||
href="index.html#variables-scope">variable scopes</a> are searched from the "inside out", which
|
|
||||||
means that local variables are checked first, followed by global variables, and finally universal
|
means that local variables are checked first, followed by global variables, and finally universal
|
||||||
variables.
|
variables.
|
||||||
|
|
||||||
This means that the global value takes precedence over the universal value.
|
This means that the global value takes precedence over the universal value.
|
||||||
|
|
||||||
To avoid this problem, consider changing the setting which fish inherits. If this is not possible,
|
To avoid this problem, consider changing the setting which fish inherits. If this is not possible,
|
||||||
add a statement to your `user initialization file <index#initialization-files>`__ (usually
|
add a statement to your :ref:`user initialization file <initialization>` (usually
|
||||||
``~/.config/fish/config.fish``)::
|
``~/.config/fish/config.fish``)::
|
||||||
|
|
||||||
set -gx EDITOR vim
|
set -gx EDITOR vim
|
||||||
|
|
|
@ -1055,7 +1055,7 @@ To see universal variables in action, start two fish sessions side by side, and
|
||||||
|
|
||||||
`Universal variables <#variables-universal>`_ are stored in the file ``.config/fish/fish_variables``. Do not edit this file directly, as your edits may be overwritten. Edit the variables through fish scripts or by using fish interactively instead.
|
`Universal variables <#variables-universal>`_ are stored in the file ``.config/fish/fish_variables``. Do not edit this file directly, as your edits may be overwritten. Edit the variables through fish scripts or by using fish interactively instead.
|
||||||
|
|
||||||
Do not append to universal variables in `config.fish <#initialization>`_, because these variables will then get longer with each new shell instance. Instead, simply set them once at the command line.
|
Do not append to universal variables in :ref:`config.fish <initialization>`, because these variables will then get longer with each new shell instance. Instead, simply set them once at the command line.
|
||||||
|
|
||||||
|
|
||||||
.. _variables-functions:
|
.. _variables-functions:
|
||||||
|
@ -1779,9 +1779,9 @@ To specify a signal handler for the WINCH signal, write::
|
||||||
echo Got WINCH signal!
|
echo Got WINCH signal!
|
||||||
end
|
end
|
||||||
|
|
||||||
Please note that event handlers only become active when a function is loaded, which means you might need to otherwise `source <cmds/source.html>`_ or execute a function instead of relying on `autoloading <#syntax-function-autoloading>`_. One approach is to put it into your `initialization file <#initialization>`_.
|
Please note that event handlers only become active when a function is loaded, which means you might need to otherwise :ref:`source <cmd-source>` or execute a function instead of relying on :ref:`autoloading <syntax-function-autoloading>`. One approach is to put it into your :ref:`initialization file <initialization>`.
|
||||||
|
|
||||||
For more information on how to define new event handlers, see the documentation for the `function <cmds/function.html>`_ command.
|
For more information on how to define new event handlers, see the documentation for the :ref:`function <cmd-function>` command.
|
||||||
|
|
||||||
|
|
||||||
.. _debugging:
|
.. _debugging:
|
||||||
|
|
Loading…
Reference in a new issue