Add function for inheriting fish installers

This commit is contained in:
Manuel Thalmann 2024-10-12 01:54:31 +02:00
parent d1076f9b2d
commit 4504ca85d4
20 changed files with 53 additions and 97 deletions
scripts/Common/Software
Oh My Posh
git

View file

@ -1,9 +1,10 @@
#!/bin/env fish
begin
set -l dir (status dirname)
set -l base "$dir/Manage.ps1"
source "$dir/../../Scripts/software.fish"
function configureSW -V dir
function configureSW -V dir -V base
source "$dir/../bash/profile.fish"
source "$dir/../fish/profile.fish"
@ -20,11 +21,11 @@ begin
'eval "$(oh-my-posh completion bash)"'
end | installBashProfile oh-my-posh
sudo -HE pwsh "$dir/Manage.ps1" Configure
sudo -HE pwsh "$base" Configure
end
function userConfig -S -V dir -a name
runPSUserConfig "$dir/Manage.ps1" $name
function userConfig -S -V base -a name
runPSUserConfig "$base" $name
end
runInstaller $argv

View file

@ -1,14 +1,15 @@
#!/bin/env fish
begin
set -l dir (status dirname)
set -l base "$dir/Manage.ps1"
source "$(status dirname)/../../Scripts/software.fish"
function configureSW -S -V dir
pwsh "$dir/Manage.ps1" Configure
function configureSW -S -V base
pwsh "$base" Configure
end
function userConfig -S -V dir -a name
runPSUserConfig "$dir/Manage.ps1" $name
function userConfig -S -V base -a name
runPSUserConfig "$base" $name
end
runInstaller $argv