From 3c4b2ad0af9a781293af18d8d92f159327e4b26d Mon Sep 17 00:00:00 2001 From: pauljako <126326487+pauljako@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:08:35 +0200 Subject: [PATCH] Bug Fix & OMP Init --- .zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index d81709a..77b8acd 100644 --- a/.zshrc +++ b/.zshrc @@ -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)"