powerlevel10k: Encountering an error trying to load powerlevel10k with oh-my-zsh

Hi, I’m using oh-my-zsh, and I can’t get this to work.

This is the error I’m getting: ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme:77: unknown condition: -v

I’ve tried to both add the source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme, as well as doing it the oh-my-zsh way of setting ZSH_THEME="powerlevel10k/powerlevel10k". Both are giving me the same error.

Any help would be appreciated, looking forward to trying this!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (11 by maintainers)

Commits related to this issue

Most upvoted comments

For anyone seeing this error in the future:

You are using ZSH version 5.8. The minimum required version for Powerlevel10k is 5.1.
Type 'echo $ZSH_VERSION' to see your current zsh version.
The shell you are currently running is likely <path>.

Rather than starting a new session by typing zsh, I had to completely exit my terminal session and then it worked.