Fix offline use of oh-my-posh

This commit is contained in:
Manuel Thalmann 2022-11-16 20:39:32 +01:00
parent 417ccf7776
commit 1b4b9b3dce
2 changed files with 5 additions and 2 deletions

View file

@ -23,6 +23,7 @@ source "$softwareRoot/rclone/install.sh"
# Install fonts # Install fonts
source "$popOSRoot/fonts.sh" source "$popOSRoot/fonts.sh"
source "$softwareRoot/oh-my-posh.sh"
} & } &
# Install surface-linux and Secure Boot # Install surface-linux and Secure Boot
@ -37,7 +38,6 @@ source "$softwareRoot/brave-beta.sh"
source "$softwareRoot/brave-nightly.sh" source "$softwareRoot/brave-nightly.sh"
# Install further software # Install further software
source "$softwareRoot/oh-my-posh.sh"
source "$softwareRoot/logo-ls.sh" source "$softwareRoot/logo-ls.sh"
source "$softwareRoot/codium.sh" source "$softwareRoot/codium.sh"
source "$softwareRoot/code.sh" source "$softwareRoot/code.sh"

View file

@ -17,6 +17,9 @@ else
homeDir=$(sudo -u $1 bash -c 'realpath ~') homeDir=$(sudo -u $1 bash -c 'realpath ~')
echo 'eval "$(oh-my-posh init bash --config ~/Nextcloud/.omp/manuel.omp.json)"' \ sudo -u $1 mkdir -p $homeDir/.omp
sudo -u $1 cp $homeDir/Nextcloud/.omp/manuel.omp.json $homeDir/.omp/manuel.omp.json
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"' \
| sudo -u $1 tee -a $homeDir/.bashrc | sudo -u $1 tee -a $homeDir/.bashrc
fi fi