From 77a175923dcf78ed0e169bf41e2693d4afcb05fc Mon Sep 17 00:00:00 2001 From: MatthewAraujo Date: Mon, 9 Sep 2024 00:37:01 -0300 Subject: [PATCH] refactor: changing p10k to oh-my-posh --- .zshrc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.zshrc b/.zshrc index 05714c0..07ca13e 100644 --- a/.zshrc +++ b/.zshrc @@ -1,10 +1,3 @@ -# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. -# Initialization code that may require console input (password prompts, [y/n] -# confirmations, etc.) must go above this block; everything else may go below. -if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" -fi - if [[ -f "/opt/homebrew/bin/brew" ]] then # If you're using macOS, you'll want this enabled eval "$(/opt/homebrew/bin/brew shellenv)" @@ -22,9 +15,6 @@ fi # Source/Load zinit source "${ZINIT_HOME}/zinit.zsh" -# Add in Powerlevel10k -zinit ice depth=1; zinit light romkatv/powerlevel10k - # Add in zsh plugins zinit light zsh-users/zsh-syntax-highlighting zinit light zsh-users/zsh-completions @@ -45,8 +35,7 @@ autoload -Uz compinit && compinit zinit cdreplay -q -# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +eval "$(oh-my-posh init zsh)" # Keybindings bindkey -e