PortValhalla/scripts/Common/Software/oh-my-posh/main.fish

33 lines
848 B
Fish
Raw Normal View History

2024-09-19 19:58:30 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-10-12 16:13:41 +00:00
set -l base "$dir/Main.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
2024-10-25 10:39:26 +00:00
function userConfig -S -V base
runPSUserConfig "$base" $argv
2024-09-19 19:58:30 +00:00
end
runInstaller $argv
end