romkatv / powerlevel10k

A Zsh theme
MIT License
46.24k stars 2.18k forks source link

p10k stopped working after macOS Monterey 12.2.1 update #1775

Closed JohLeonhardt closed 2 years ago

JohLeonhardt commented 2 years ago

Hi Team, I just did the new macOS Monterey 12.2.1 update and p10k stopped working.

leonharf@G3FWPQD4F3 react_step_form % p10k configure
zsh: command not found: p10k

In my ~/.zshrc I have:

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 you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH

Path to your oh-my-zsh installation.
export ZSH="Users/leonharf@G3FWPQD4F3/.oh-my-zsh"

Set name of the theme to load --- if set to "random", it will
load a random theme each time oh-my-zsh is loaded, in which case,
to know which specific one was loaded, run: echo $RANDOM_THEME
See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"`

`Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh

User configuration`

`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

I am not sure how to get p10k back but everything else seem right, any clue?

romkatv commented 2 years ago

Please post the output of exec zsh.

JohLeonhardt commented 2 years ago

hmm I don't have that file :)

romkatv commented 2 years ago

What do you not have?

JohLeonhardt commented 2 years ago

I have this only: ~/.zshrc

romkatv commented 2 years ago

Can you please post the output of exec zsh? Run the command and copy the output here.

JohLeonhardt commented 2 years ago

/Users/leonharf/.zshrc:source:82: no such file or directory: Users/leonharf@G3FWPQD4F3/.oh-my-zsh/oh-my-zsh.sh

romkatv commented 2 years ago

That's your problem. You need to install oh-my-zsh. Then you need to install powerlevel10k.

JohLeonhardt commented 2 years ago

oh wait it suddenly started working again.

JohLeonhardt commented 2 years ago

Ehhh sorry not sure what happened maybe the update was still going or something. It's all fix now how odd I just restarted iTerm2 and it worked again. Sorry didn't mean to waste your time :)

romkatv commented 2 years ago

I'm glad.