Change default prompt on ZSH from Oh My Posh to Starship

This commit is contained in:
Fabio Scotto di Santolo
2025-06-11 10:41:03 +02:00
parent b351c3ac1f
commit f77930857f
5 changed files with 903 additions and 5 deletions

View File

@@ -5,9 +5,14 @@ if [ -f "/home/linuxbrew/.linuxbrew/bin/brew" ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
if command -v oh-my-posh > /dev/null 2>&1; then
# Initialize Oh My Posh
eval "$(oh-my-posh init zsh --config "$(brew --prefix oh-my-posh)/themes/peru.omp.json")"
#if command -v oh-my-posh > /dev/null 2>&1; then
# # Initialize Oh My Posh
# eval "$(oh-my-posh init zsh --config "$(brew --prefix oh-my-posh)/themes/peru.omp.json")"
#fi
if command -v starship > /dev/null 2>&1; then
# Initialize Starship
eval "$(starship init zsh)"
fi
export VIRTUAL_ENV_DISABLE_PROMPT=1