Bug Fix & OMP Init

This commit is contained in:
pauljako 2024-08-23 21:08:35 +02:00
parent ce41d504c3
commit 3c4b2ad0af

8
.zshrc
View file

@ -27,9 +27,13 @@ case "${platform}" in
esac
#
# Get and download the correct OMP
correct_omp="~/.config/oh-my-posh/posh-$platform-$arch"
correct_omp="$HOME/.config/oh-my-posh/posh-$platform-$arch"
if [ ! -f "$correct_omp" ]; then
echo "Downloading Oh My Posh for $platform-$arch"
curl -s -o "$correct_omp" "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/latest/posh-$platform-$arch"
curl -s -L -o "$correct_omp" "https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-$platform-$arch"
chmod +x "$correct_omp"
fi
alias oh-my-posh="$correct_omp"
#
# Initialize OMP
eval "$(oh-my-posh init zsh)"