From 4fe92d31d2253a60893abcfa66099ccd7abc3cdf Mon Sep 17 00:00:00 2001 From: Ira Limitanei Date: Wed, 15 May 2024 12:13:40 +0900 Subject: [PATCH] fix: switch to top level profile to avoid overriding user profile --- toolboxes/powershell-toolbox/Containerfile.powershell | 1 + 1 file changed, 1 insertion(+) diff --git a/toolboxes/powershell-toolbox/Containerfile.powershell b/toolboxes/powershell-toolbox/Containerfile.powershell index 1fc54db..76809f2 100644 --- a/toolboxes/powershell-toolbox/Containerfile.powershell +++ b/toolboxes/powershell-toolbox/Containerfile.powershell @@ -25,6 +25,7 @@ RUN apk upgrade \ && curl -LSfs https://raw.githubusercontent.com/cantino/mcfly/master/ci/install.sh | sh -s -- --git cantino/mcfly \ && mkdir -p ~/.config/powershell \ && cp /tmp/Microsoft.PowerShell_profile.ps1 ~/.config/powershell \ + && cp /tmp/profile.ps1 "$(~/.dotnet/tools/pwsh -Command "\$PROFILE.AllUsersAllHosts")" \ && mkdir -p ~/.local/share/powershell/PSReadLine \ && touch ~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt \ && rm -rf /tmp/*