Fix offline use of oh-my-posh
This commit is contained in:
parent
417ccf7776
commit
1b4b9b3dce
2 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue