docs/export: Add a bit on PATH=$PATH:...

This commit is contained in:
Fabian Boehm 2024-11-06 18:50:41 +01:00
parent 0979b9a98b
commit 4b24fe7daf

View file

@ -36,6 +36,13 @@ The following commands have an identical effect.
set -gx PAGER bat
export PAGER=bat
Note: If you want to add to e.g. ``$PATH``, you need to be careful to :ref:`combine the list <cartesian-product>`. Quote it, like so::
export PATH="$PATH:/opt/bin"
Or just use ``set``, which avoids this::
set -gx PATH $PATH /opt/bin
See more
--------