fish-shell/doc_src
Fabian Homborg 9354dd6971 Add fish_add_path, a simple way to add to $PATH
This is a function you can either execute once, interactively, or
stick in config.fish, and it will do the right thing.

Some options are included to choose some slightly different behavior,
like setting $PATH directly instead of $fish_user_paths, or moving
already existing components to the front/back instead of ignoring
them, or appending new components instead of prepending them.

The defaults were chosen because they are the most safe, and
especially because they allow it to be idempotent - running it again
and again and again won't change anything, it won't even run the
actual `set` because it skips that if all components are already in.

Fixes #6960.
2020-05-29 20:51:05 +02:00
..
_static doc: make <kbd> style more prominent 2020-03-19 18:22:40 +01:00
cmds Add fish_add_path, a simple way to add to $PATH 2020-05-29 20:51:05 +02:00
commands.rst We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
completions.rst docs: don't quote code snippets 2020-04-13 22:56:22 +02:00
conf.py docs: Make a fish-completions manpage 2020-03-21 12:07:30 +01:00
design.rst docs: don't quote code snippets 2020-04-13 22:56:22 +02:00
faq.rst Reword sentence 2020-05-28 17:39:37 +02:00
fish_indent_lexer.py We no longer have two doc systems, move sphinx_doc_src back to doc_src 2020-02-19 17:00:35 -08:00
index.rst docs: Some rewording in Special Variables 2020-05-24 20:23:31 +02:00
license.rst chore: bump copyright year 2019 → 2020 2020-03-14 14:03:09 -07:00
tutorial.rst docs/tutorial: Fix duplicate sentence 2020-05-20 19:20:12 +02:00