docs: Explain $XDG_CONFIG_HOME

This commit is contained in:
Fabian Homborg 2020-06-05 19:18:09 +02:00
parent 77fc83c293
commit 801ab95fd0

View file

@ -15,9 +15,11 @@ Since fish 3.1 you can set an environment variable for just one command using th
How do I run a command every login? What's fish's equivalent to .bashrc or .profile?
------------------------------------------------------------------------------------
Edit the file ``~/.config/fish/config.fish``, creating it if it does not exist (Note the leading period).
Edit the file ``~/.config/fish/config.fish`` [#]_, creating it if it does not exist (Note the leading period).
.. [#] The "~/.config" part of this can be set via $XDG_CONFIG_HOME, that's just the default.
How do I set my prompt?
-----------------------
The prompt is the output of the ``fish_prompt`` function. Put it in ``~/.config/fish/functions/fish_prompt.fish``. For example, a simple prompt is::