Add support for PowerShell conf.d on Linux

This commit is contained in:
Manuel Thalmann 2024-09-19 21:53:24 +02:00
parent 64850b194e
commit 0bb8cc8c99
3 changed files with 29 additions and 2 deletions

View file

@ -17,10 +17,11 @@ begin
and source "$dir/../Software/pacman/main.fish" and source "$dir/../Software/pacman/main.fish"
and source "$dir/../Software/yay/main.fish" and source "$dir/../Software/yay/main.fish"
and source "$dir/../Software/PowerShell/main.fish"
and yayinst \ and yayinst \
linux-headers \ linux-headers \
pacman-contrib \ pacman-contrib
powershell-bin
end end
source "$dir/../../Common/OS/install.fish" source "$dir/../../Common/OS/install.fish"

View file

@ -0,0 +1,15 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
yayinst powershell-bin
end
function configureSW -V dir
fish "$dir/../../../Common/Software/PowerShell/main.fish" configure
end
runInstaller $argv
end

View file

@ -0,0 +1,11 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function configureSW -V dir
sudo -HE pwsh "$dir/Manage.ps1" Configure
end
runInstaller $argv
end