From 92551e181837f1bb0b0893c83267b82e1e62f94c Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 4 Jul 2023 18:29:34 +0200 Subject: [PATCH] docs/abbr: Explain saving abbrs --- doc_src/cmds/abbr.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc_src/cmds/abbr.rst b/doc_src/cmds/abbr.rst index af497760c..3fc86662e 100644 --- a/doc_src/cmds/abbr.rst +++ b/doc_src/cmds/abbr.rst @@ -49,6 +49,13 @@ Combining these features, it is possible to create custom syntaxes, where a regu > abbr >> ~/.config/fish/config.fish > abbr --erase (abbr --list) + Alternatively you can keep them in a separate :ref:`configuration file ` by doing something like the following:: + + > abbr > ~/.config/fish/conf.d/myabbrs.fish + + This will save all your abbrevations in "myabbrs.fish", overwriting the whole file so it doesn't leave any duplicates, + or restore abbreviations you had erased. + Of course any functions will have to be saved separately, see :doc:`funcsave `. "add" subcommand --------------------