Path
Specify the same PATH entries cross shell.
Syntaxโ
path:
- value: |
{{ .Home }}/homebrew/bin
/usr/local/bin/
/opt/local/bin/
if: eq .OS "darwin"
- value: |
{{ .Home }}/go/bin/
{{ env "VOLTA_HOME" }}/bin
force: true
Pathโ
| Name | Type | Description |
|---|---|---|
value | string | the path entires you want to add, separated by a newline. Supports templating |
if | string | golang template conditional statement, see if |
persist | boolean | if you want to persist the path entry into the registry for the current user (Windows only) |
force | boolean | if you want to always export the path, even if already present or missing on disk |
info
Entries pointing to a directory that doesn't exist on disk are skipped automatically, so your
shell never tries to traverse into a missing path. Set force: true to bypass this check, along
with the "already in PATH" check.