Add support for PowerShell conf.d on Linux

This commit is contained in:
Manuel Thalmann 2024-09-19 21:53:24 +02:00
parent 984d03d5dd
commit 03e8a0e5ff
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/yay/main.fish"
and source "$dir/../Software/PowerShell/main.fish"
and yayinst \
linux-headers \
pacman-contrib \
powershell-bin
pacman-contrib
end
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