From 4eb85b43c917c0faa4873d06e5184c374bd4e806 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Wed, 12 Jun 2024 19:38:17 +0100 Subject: [PATCH] chore(.zshrc): remove colorize plugin and ZSH_COLORIZE_STYLE setting to simplify and improve shell startup performance feat(.zshrc): add oh-my-posh setup to enhance terminal appearance and functionality based on the terminal program being used --- .zshrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 99e0953..ea1e518 100644 --- a/.zshrc +++ b/.zshrc @@ -71,15 +71,17 @@ COMPLETION_WAITING_DOTS="true" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git asdf zsh-syntax-highlighting colorize ) - -ZSH_COLORIZE_STYLE="colorful" -ZSH_TMUX_AUTOSTART="true" +plugins=(git asdf zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh # User configuration +# Setup oh-my-posh +if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then + eval "$(oh-my-posh init zsh)" +fi + # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment