PortValhalla/scripts/Common/Software/Oh My Posh/main.fish

33 lines
858 B
Fish
Raw Normal View History

2024-09-19 19:58:30 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
set -l base "$dir/Manage.ps1"
2024-09-19 19:58:30 +00:00
source "$dir/../../Scripts/software.fish"
function configureSW -V dir -V base
2024-09-19 19:58:30 +00:00
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"
2024-10-06 19:25:34 +00:00
end | installFishProfile oh-my-posh
2024-09-19 19:58:30 +00:00
begin
printf %s\n \
'eval "$(oh-my-posh init bash)"' \
'eval "$(oh-my-posh completion bash)"'
2024-10-06 19:25:34 +00:00
end | installBashProfile oh-my-posh
2024-09-19 19:58:30 +00:00
sudo -HE pwsh "$base" Configure
2024-09-19 19:58:30 +00:00
end
function userConfig -S -V base -a name
runPSUserConfig "$base" $name
2024-09-19 19:58:30 +00:00
end
runInstaller $argv
end