mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Mention correct config file
While the tutorial explains how to set the `PATH` variable, it mentions the file `fish.config` but it should be `config.fish`.
This commit is contained in:
parent
1a3bcf63bc
commit
6eea3992b3
1 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ To prepend to `$PATH`, you can write:
|
|||
>_ 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).
|
||||
You can do so directly in `config.fish`, 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:
|
||||
|
||||
|
@ -542,7 +542,7 @@ A faster way is to modify the `$fish_user_paths` [universal variable](#tut_unive
|
|||
>_ set -U fish_user_paths /usr/local/bin $fish_user_paths
|
||||
\endfish
|
||||
|
||||
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!)
|
||||
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 `config.fish`. If you do, the variable will get longer each time you run fish!)
|
||||
|
||||
\section tut_startup Startup (Where's .bashrc?)
|
||||
|
||||
|
|
Loading…
Reference in a new issue