Skip to content

Commit

Permalink
migrate from p10k to oh-my-posh
Browse files Browse the repository at this point in the history
p10k is in maintenance mode
  • Loading branch information
codevbus committed Nov 14, 2024
1 parent 2ad1eb0 commit 15da944
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
#!/bin/zsh

# 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

# aliases
#if _has exa; then
alias ls='eza'
Expand Down Expand Up @@ -74,9 +67,8 @@ setopt HIST_REDUCE_BLANKS # remove unnecessary blanks
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
setopt EXTENDED_HISTORY # record command start time

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/catppuccin_mocha.omp.json)"

0 comments on commit 15da944

Please sign in to comment.