Configure oh-my-posh
on Linux
This commit is contained in:
parent
b1b067bdb6
commit
c90e7faf11
4 changed files with 55 additions and 4 deletions
scripts/Common/Software/Oh My Posh
31
scripts/Common/Software/Oh My Posh/main.fish
Normal file
31
scripts/Common/Software/Oh My Posh/main.fish
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/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
|
||||
pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$dir/Manage.ps1" $name
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue