aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-03 12:46:40 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-03 12:46:40 -0700
commita5fabc6875747ca35a14f3d6f15f2ce6e608ba39 (patch)
tree65f5d9552187d2188f538e832efa902fcce1558b /doc_src
parent506720003d051d8767cfd4d1ad5d33f17a72d2c5 (diff)
Further tweak the language about setting PATH in the tutorial
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/tutorial.hdr12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc_src/tutorial.hdr b/doc_src/tutorial.hdr
index 772c0259..7cad5cb9 100644
--- a/doc_src/tutorial.hdr
+++ b/doc_src/tutorial.hdr
@@ -514,15 +514,21 @@ You can choose among some sample prompts by running `fish_config prompt`. `fish`
`$PATH` is an environment variable containing the directories in which `fish` searches for commands. Unlike other shells, $PATH is a [list](#tut_lists), not a colon-delimited string.
-You can set PATH directly in fish.config, like you would do in other shells. See [this example](#path_example).
+To prepend to `$PATH`, you can write:
+
+\fish{cli-dark}
+>_ set PATH /new/path $PATH
+\endfish
+
+You can do so directly in `fish.config`, like you might do in other shells with `.profile`. See [this example](#path_example).
A faster way is to modify the `$fish_user_paths` [universal variable](#tut_universal), which is automatically prepended to `$PATH`. For example, to permanently add `/usr/local/bin` to your `$PATH`, you could write:
\fish{cli-dark}
->_ set -U fish_user_paths $fish_user_paths /usr/local/bin
+>_ set -U fish_user_paths /usr/local/bin $fish_user_paths
\endfish
-You just run this once at the command line, and it will affect the current session and all future instances too. (Note: you should NOT add this line to `fish.config`. If you do, the variable will get longer each time you run fish!)
+The advantage is that you don't have to go mucking around in files: just run this once at the command line, and it will affect the current session and all future instances too. (Note: you should NOT add this line to `fish.config`. If you do, the variable will get longer each time you run fish!)
\section tut_startup Startup (Where's .bashrc?)