32 lines
835 B
Fish
32 lines
835 B
Fish
#!/bin/env fish
|
|
begin
|
|
set -l dir (status dirname)
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
function configureSW -V dir
|
|
source "$dir/../bash/profile.fish"
|
|
source "$dir/../fish/profile.fish"
|
|
|
|
begin
|
|
printf %s\n \
|
|
'set -x POSH_THEME $POSH_THEME' \
|
|
"oh-my-posh init fish | source" \
|
|
"oh-my-posh completion fish | source"
|
|
end | installFishProfile oh-my-posh
|
|
|
|
begin
|
|
printf %s\n \
|
|
'eval "$(oh-my-posh init bash)"' \
|
|
'eval "$(oh-my-posh completion bash)"'
|
|
end | installBashProfile oh-my-posh
|
|
|
|
sudo -HE pwsh "$dir/Manage.ps1" Configure
|
|
end
|
|
|
|
function userConfig -S -V dir -a name
|
|
runPSUserConfig "$dir/Manage.ps1" $name
|
|
end
|
|
|
|
runInstaller $argv
|
|
end
|