From: AJ ONeal Date: Sat, 4 Jul 2020 22:36:51 +0000 (+0000) Subject: add webi_add_path X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=commitdiff_plain;h=4fc5872ada48c597e549dbf868438a0ecbaf81b1 add webi_add_path --- diff --git a/_webi/template.ps1 b/_webi/template.ps1 index 5eca6fa..38e60e1 100644 --- a/_webi/template.ps1 +++ b/_webi/template.ps1 @@ -33,10 +33,17 @@ if (!(Test-Path -Path .local\opt)) # {{ baseurl }} # {{ version }} +function webi_add_path +{ + & "$Env:USERPROFILE\.local\bin\pathman.exe" add "$args[0]" + # Note: not all of these work as expected, so we use the unix-style, which is most consistent + #& "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin + #& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin" + #& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin +} + # Run pathman to set up the folder & "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin -#& "$Env:USERPROFILE\.local\bin\pathman.exe" add "$Env:USERPROFILE\.local\bin" -#& "$Env:USERPROFILE\.local\bin\pathman.exe" add %USERPROFILE%\.local\bin {{ installer }}