mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
docs/export: Add a bit on PATH=$PATH:...
This commit is contained in:
parent
0979b9a98b
commit
4b24fe7daf
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,13 @@ The following commands have an identical effect.
|
||||||
set -gx PAGER bat
|
set -gx PAGER bat
|
||||||
export 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
|
See more
|
||||||
--------
|
--------
|
||||||
|
|
Loading…
Reference in a new issue