1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[391],{4411(e,t,n){n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>d,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"setup/path","title":"Path","description":"Specify the same PATH entries cross shell.","source":"@site/docs/setup/path.mdx","sourceDirName":"setup","slug":"/setup/path","permalink":"/docs/setup/path","draft":false,"unlisted":false,"editUrl":"https://github.com/jandedobbeleer/aliae/edit/main/website/docs/setup/path.mdx","tags":[],"version":"current","frontMatter":{"id":"path","title":"Path","sidebar_label":"\ud83d\udee3\ufe0f Path"},"sidebar":"docs","previous":{"title":"\ud83d\uded6 Environment Variable","permalink":"/docs/setup/env"},"next":{"title":"\ud83d\udd17 Symbolic Link","permalink":"/docs/setup/link"}}');var i=n(4848),r=n(8453);const d={id:"path",title:"Path",sidebar_label:"\ud83d\udee3\ufe0f Path"},a=void 0,o={},c=[{value:"Syntax",id:"syntax",level:3},{value:"Path",id:"path",level:3}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h3:"h3",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.p,{children:["Specify the same ",(0,i.jsx)(t.code,{children:"PATH"})," entries cross shell."]}),"\n",(0,i.jsx)(t.h3,{id:"syntax",children:"Syntax"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-yaml",children:'path:\n - value: |\n {{ .Home }}/homebrew/bin\n /usr/local/bin/\n /opt/local/bin/\n if: eq .OS "darwin"\n - value: |\n {{ .Home }}/go/bin/\n {{ env "VOLTA_HOME" }}/bin\n force: true\n'})}),"\n",(0,i.jsx)(t.h3,{id:"path",children:"Path"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Name"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"value"})}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"string"})}),(0,i.jsxs)(t.td,{children:["the path entires you want to add, separated by a newline. Supports ",(0,i.jsx)(t.a,{href:"/docs/setup/templates",children:"templating"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"if"})}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"string"})}),(0,i.jsxs)(t.td,{children:["golang ",(0,i.jsx)(t.a,{href:"https://golang.org/pkg/text/template/",children:"template"})," conditional statement, see ",(0,i.jsx)(t.a,{href:"/docs/setup/if",children:"if"})]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"persist"})}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"boolean"})}),(0,i.jsx)(t.td,{children:"if you want to persist the path entry into the registry for the current user (Windows only)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"force"})}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"boolean"})}),(0,i.jsx)(t.td,{children:"if you want to always export the path, even if already present or missing on disk"})]})]})]}),"\n",(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Entries pointing to a directory that doesn't exist on disk are skipped automatically, so your\nshell never tries to traverse into a missing path. Set ",(0,i.jsx)(t.code,{children:"force: true"}),' to bypass this check, along\nwith the "already in ',(0,i.jsx)(t.code,{children:"PATH"}),'" check.']})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453(e,t,n){n.d(t,{R:()=>d,x:()=>a});var s=n(6540);const i={},r=s.createContext(i);function d(e){const t=s.useContext(r);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.