From 7accadc33f817a3e17c14c989a3b83f0d6737665 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 26 Mar 2016 19:16:17 +0100 Subject: Only read .fish files in the snippets directories This would allow us to add a README and allows users to easily disable something temporarily. --- doc_src/index.hdr.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc_src') diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index ed497a99..ff2d5ab3 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -1088,7 +1088,7 @@ function on_exit --on-process %self end \endfish -Right after reading /usr/share/fish/config.fish and before reading /etc/fish/config.fish, fish will also read files in ~/.config/fish/conf.d/, /etc/fish/conf.d and /usr/share/fish/vendor_conf.d (the exact values depend on $XDG_CONFIG_HOME, $__fish_sysconfdir and $__fish_datadir). If there are files with the same name in two or all of these, fish will only attempt to read the first (skipping all files with that name if it is unreadable). ~/.config takes precedence over /etc/ which takes precedence over /usr. The path to the latter can also be gotten via `pkg-config` as "confdir", and is meant for third-party applications to integrate with fish. +Right after reading /usr/share/fish/config.fish and before reading /etc/fish/config.fish, fish will also read files ending in ".fish" in ~/.config/fish/conf.d/, /etc/fish/conf.d and /usr/share/fish/vendor_conf.d (the exact values depend on $XDG_CONFIG_HOME, $__fish_sysconfdir and $__fish_datadir). If there are files with the same name in two or all of these, fish will only attempt to read the first (skipping all files with that name if it is unreadable). ~/.config takes precedence over /etc/ which takes precedence over /usr. The path to the latter can also be gotten via `pkg-config` as "confdir", and is meant for third-party applications to integrate with fish. \section other Other features -- cgit v1.2.3