Add support for PowerShell conf.d
on Linux
This commit is contained in:
parent
fb2ff92b73
commit
40ea007b77
3 changed files with 29 additions and 2 deletions
|
@ -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"
|
||||||
|
|
15
scripts/Arch/Software/PowerShell/main.fish
Executable file
15
scripts/Arch/Software/PowerShell/main.fish
Executable 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
|
11
scripts/Common/Software/PowerShell/main.fish
Executable file
11
scripts/Common/Software/PowerShell/main.fish
Executable 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
|
Loading…
Reference in a new issue