Skip to content

Commit

Permalink
Recommend using $PATH when setting it via env
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jun 19, 2023
1 parent b911d59 commit 6275b91
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/linter_settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Disables the linter.

env
---

Set additional environment variables.

.. code-block:: json
Expand All @@ -43,6 +44,16 @@ Set additional environment variables.
"env": "{'GEM_HOME': '~/foo/bar'}"
}
If you want to edit your PATH, note that we support :ref:`Settings Expansion
<settings-expansion>` here, as everywhere else, as it is very convenient in
this case. For example:

.. code-block:: json
"env": {
"PATH": "~/path/to/bin:$PATH"
}
excludes
--------
Expand Down

0 comments on commit 6275b91

Please sign in to comment.