Skip to main content

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โ€‹

NameTypeDescription
valuestringthe path entires you want to add, separated by a newline. Supports templating
ifstringgolang template conditional statement, see if
persistbooleanif you want to persist the path entry into the registry for the current user (Windows only)
forcebooleanif you want to always export the path even if it already exists in your current shell