Document fish-specific bits about locale vars

Link to history, printf and "builtin _" which are the only(?) users
of LC_TIME, LC_NUMERIC and LC_MESSAGES respectively (besides the core
equivalent of "builtin _").
This commit is contained in:
Johannes Altmanninger
2025-10-24 22:41:39 +02:00
parent 2be3f34f2c
commit 58eec96a5b
2 changed files with 7 additions and 4 deletions

View File

@@ -63,6 +63,8 @@ These flags can appear before or immediately after one of the sub-commands liste
**-p** or **--prefix**
Searches items in the history that begin with the specified text string. This is not currently supported by the **delete** subcommand.
.. _history-show-time:
**-t** or **--show-time**
Prepends each history entry with the date and time the entry was recorded. By default it uses the strftime format ``# %c%n``. You can specify another format; e.g., ``--show-time="%Y-%m-%d %H:%M:%S "`` or ``--show-time="%a%I%p"``. The short option, **-t**, doesn't accept a strftime format string; it only uses the default format. Any strftime format is allowed, including ``%s`` to get the raw UNIX seconds since the epoch.

View File

@@ -1563,7 +1563,7 @@ You can change the settings of fish by changing the values of certain variables.
.. describe:: Locale Variables
The locale variables :envvar:`LANG`, :envvar:`LC_ALL`, :envvar:`LC_COLLATE`, :envvar:`LC_MESSAGES`, :envvar:`LC_MONETARY`, :envvar:`LC_NUMERIC`, and :envvar:`LANG` set the language option for the shell and subprograms. See the section :ref:`Locale variables <variables-locale>` for more information.
Locale variables such as :envvar:`LANG`, :envvar:`LC_ALL`, :envvar:`LC_COLLATE`, :envvar:`LC_MESSAGES`, :envvar:`LC_MONETARY`, :envvar:`LC_NUMERIC` and :envvar:`LC_TIME` set the language option for the shell and subprograms. See the section :ref:`Locale variables <variables-locale>` for more information.
.. describe:: Color variables
@@ -1844,7 +1844,7 @@ The "locale" of a program is its set of language and regional settings that depe
.. envvar:: LC_MESSAGES
``LC_MESSAGES`` determines the language in which messages are diisplayed.
Determines the language in which messages are displayed, see :doc:`builtin _ (underscore) <cmds/_>`.
.. envvar:: LC_MONETARY
@@ -1852,11 +1852,12 @@ The "locale" of a program is its set of language and regional settings that depe
.. envvar:: LC_NUMERIC
Sets the locale for formatting numbers.
Sets the locale for :doc:`formatting numbers <cmds/printf>`.
.. envvar:: LC_TIME
Sets the locale for formatting dates and times.
Determines how date and time are displayed.
Used in the :ref:`history <history-show-time>` builtin.
.. _builtin-overview: