4 [switch]$Optional=$false
14 Write-Error "Add-ToPath failed for $PATH"
20 # Some Paths that are annoying to find/restore if the installer fails
21 Add-ToPath "C:\Program Files\Git\cmd" # Version control is nice.
22 Add-ToPath "C:\Program Files\Microsoft VS Code\bin" -optional # One Editor to rule them all
23 Add-ToPath "C:\Program Files\Git\cmd" # Version control is nice.
24 Add-ToPath "C:\ProgramData\chocolatey\bin" # Package management is nice.
25 Add-ToPath "C:\Program Files (x86)\GnuWin32\bin" -optional # GNU Utils - i.e. rm
26 Add-ToPath "C:\bin\x16emu" -optional # X16 Emulator
27 Add-ToPath "$env:src\x16-demo\tools" -optional # x16 python tools
28 Add-ToPath "$env:src\flutter\bin" -optional # Flutter for Dart
29 Add-ToPath "$env:src\bin" -optional # anything else I need
30 Add-ToPath "$HOME\bin" -optional # anything else I need
33 Add-ToPath "$env:src/bin" -optional # anything else I need
34 Add-ToPath "$HOME/bin" # anything else I need
35 Add-ToPath "$HOME/x16/x16-emulator" -optional # x16 Emulator
36 Add-ToPath "$HOME/src/x16-demo/tools" -optional # x16 python tools
38 Add-ToPath "$HOME/go/bin" -optional # x16 python tools
41 Add-ToPath "$env:src\chart" -optional # command line chart utility edthedev\chart
42 Add-ToPath "$env:src\agenda" -optional # command line chart utility edthedev\chart
43 Add-ToPath "$env:src\todolist" -optional # todo list utility edthedev\todolist
45 # krew for K8S pluginsa - specifically vtrl
46 Add-ToPath "$HOME/.krew/bin"
48 # $env:path+=";C:\Program Files\Git\bin"
49 # $env:path+=";C:\Program Files (x86)\Microsoft VS Code\"