From 4fc5872ada48c597e549dbf868438a0ecbaf81b1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 4 Jul 2020 22:36:51 +0000 Subject: [PATCH] add webi_add_path --- _webi/template.ps1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 }} -- 2.25.1