From 801ab95fd0c44a350766e1d3aa2696f684765d90 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 5 Jun 2020 19:18:09 +0200 Subject: [PATCH] docs: Explain $XDG_CONFIG_HOME --- doc_src/faq.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc_src/faq.rst b/doc_src/faq.rst index 7afc1e943..48bc2c89f 100644 --- a/doc_src/faq.rst +++ b/doc_src/faq.rst @@ -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::