romkatv / powerlevel10k

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

[oh-my-zsh] theme 'powerlevel10k' not found #1942

Closed silent-night-no-trace closed 2 years ago

silent-night-no-trace commented 2 years ago

I use powerlevel10k
Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

open zsh

image
romkatv commented 2 years ago

Follow the installation instructions: https://github.com/romkatv/powerlevel10k#oh-my-zsh. Specifically, make sure to perform this step:

  1. Clone the repository:

    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

    Users in China can use the official mirror on gitee.com for faster download.
    中国用户可以使用 gitee.com 上的官方镜像加速下载.

    git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Once done, restart zsh with exec zsh.

silent-night-no-trace commented 2 years ago

I use as follows

1.Clone the repository:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k Users in mainland China can use the official mirror on gitee.com for faster download. 中国大陆用户可以使用 gitee.com 上的官方镜像加速下载.

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k 2.Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

silent-night-no-trace commented 2 years ago

Still have the above problem

romkatv commented 2 years ago

What's is the output of the following command?

ls -l -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
silent-night-no-trace commented 2 years ago
image
silent-night-no-trace commented 2 years ago

now output

romkatv commented 2 years ago

You didn't run the command I asked. Please do and post its output here.

silent-night-no-trace commented 2 years ago

see image

romkatv commented 2 years ago

Closing because the communication isn't working. You'll have to ask for help elsewhere.

silent-night-no-trace commented 2 years ago

ok, i try install again

silent-night-no-trace commented 2 years ago
image
silent-night-no-trace commented 2 years ago

ok ,i re-install ,problem solved . thanks !

lmwenda commented 2 years ago

I got this issue as well and this command: ls -l -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k doesn't work

romkatv commented 2 years ago

@lmwenda Follow installation instructions: https://github.com/romkatv/powerlevel10k#installation

lmwenda commented 2 years ago

For me powerlevel10k is installed properly and has taken effect however but it still says its not found which is annoying.

romkatv commented 2 years ago

For me powerlevel10k is installed properly

This is probably not so. Please see the installation instructions and follow them very carefully. If some steps aren't clear, ask what here for help.

lmwenda commented 2 years ago

Alright, thank you.

rcoundon commented 2 years ago

I'm also seeing this, the output of running ls -l -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k is:

❯ ls -l -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
total 432
-rw-r--r--   1 rosscoundon  staff   1354 27 Jun 14:40 LICENSE
-rw-r--r--   1 rosscoundon  staff    354 27 Jun 14:40 Makefile
-rw-r--r--   1 rosscoundon  staff  99837  5 Sep 16:13 README.md
drwxr-xr-x   8 rosscoundon  staff    256 11 Jul 11:53 config
-rw-r--r--   1 rosscoundon  staff   8691  2 Sep 17:57 font.md
drwxr-xr-x  24 rosscoundon  staff    768 27 Jun 14:43 gitstatus
drwxr-xr-x  14 rosscoundon  staff    448 23 Sep 15:45 internal
-rw-r--r--   1 rosscoundon  staff  62099 27 Jun 14:40 powerlevel10k.png
-rw-r--r--   1 rosscoundon  staff   3913 27 Jun 14:40 powerlevel10k.zsh-theme
-r--r--r--   1 rosscoundon  staff   8552 27 Jun 14:43 powerlevel10k.zsh-theme.zwc
-rw-r--r--   1 rosscoundon  staff     97 27 Jun 14:40 powerlevel9k.zsh-theme
-r--r--r--   1 rosscoundon  staff    576 27 Jun 14:43 powerlevel9k.zsh-theme.zwc
-rw-r--r--   1 rosscoundon  staff     97 27 Jun 14:40 prompt_powerlevel10k_setup
-rw-r--r--   1 rosscoundon  staff     97 27 Jun 14:40 prompt_powerlevel9k_setup

Cloning the repo fails because it's already there - i.e. a non-empty directory. However, when launching a new terminal session I get the error:

[oh-my-zsh] theme 'powerlevel10k/powerlevel10k' not found

However, things do seem to be working:

image

I'm using an M1 Macbook Pro, in case that's a factor

romkatv commented 2 years ago

@rcoundon Please follow the installation instructions carefully.

rcoundon commented 2 years ago

@rcoundon Please follow the installation instructions carefully.

I believe I have.

romkatv commented 2 years ago

@rcoundon Please follow the installation instructions carefully.

I believe I have.

In this case please file a bug against Oh My Zsh. The error message is coming from it.

anwarulislam commented 2 years ago

How did I solve it?

code .zshrc

Find for this line:

source <(ng completion script)

Comment out this line and save.

rcoundon commented 2 years ago

@rcoundon Please follow the installation instructions carefully.

I believe I have.

In this case please file a bug against Oh My Zsh. The error message is coming from it.

Thought I'd report back. I've just been through the process of uninstalling Oh My Zsh and reinstalling, then reapplying Powerlevel10k and it's now working correctly.

choilive commented 2 years ago

FWIW- also having this issue after installing powerlevel10k

romkatv commented 2 years ago

FWIW- also having this issue after installing powerlevel10k

Use the same resolution.

gaillota commented 1 year ago

My mistake was removing the last character when pasting git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

So the repo was cloned to powerlevel10 instead of powerlevel10k

wupn1 commented 1 year ago

My mistake was removing the last character when pasting git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

So the repo was cloned to powerlevel10 instead of powerlevel10k

It also help me. Thanks a lot.

anantmi3 commented 1 year ago

SOLVED this issue without reinstalling.

Just follow the steps: -

  1. copy your folder /powerlevel10k and paste it inside /.oh-my-zsh/themes/
  2. restart your terminal
  3. Start zshagain

After that it does not give the error again.

tedtalksbits commented 1 year ago

What's is the output of the following command?

ls -l -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

SOLVED apparently I didn't clone the repo (though I thought I did) Thanks a bunch

uncleSlayer commented 1 year ago

SOLVED this issue without reinstalling.

Just follow the steps: -

  1. copy your folder /powerlevel10k and paste it inside /.oh-my-zsh/themes/
  2. restart your terminal
  3. Start zshagain

After that it does not give the error again.

thanks this worked for me too.

turkalpmd commented 1 year ago

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Perfect solution, it is work on my local

jdkruzr commented 1 year ago

I think it's probably worth noting that I have also encountered this problem -- I was using p10k for literally three years with no issues, and then as of last week I started getting this error message. It's literally not there anymore. Something deleted p10k from my Mac and I have no idea what.

romkatv commented 1 year ago

Something deleted p10k from my Mac and I have no idea what.

I can assure you that p10k didn't delete itself.

jdkruzr commented 1 year ago

I don't imagine it did! I do wonder if something related to the OS upgrade I did last week did something to break my home directory or somehow otherwise cleared out the contents of something related to zsh.

On Mar 3, 2023, at 2:42 AM, Roman Perepelitsa @.***> wrote:

Something deleted p10k from my Mac and I have no idea what.

I can assure you that p10k didn't delete itself.

— Reply to this email directly, view it on GitHub https://github.com/romkatv/powerlevel10k/issues/1942#issuecomment-1453170921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEW5VUUGG6HUD254HTMRVLW2GVJFANCNFSM53N7BI7Q. You are receiving this because you commented.

fabriciomasiero commented 1 year ago

Closing because the communication isn't working. You'll have to ask for help elsewhere.

Why???? @romkatv

Why can't you just be polite and kind? This is not the kind of help we need. If you're going to do this, please don't help, so you only push away those who need help. Be nice not an asshole

romkatv commented 1 year ago

@fabriciomasiero Please refrain from discussing anything other than powerlevel10k on this forum.

tristan-pv01 commented 1 year ago

I'm having the same issue; could this be due to installing with Homebrew? The repo cloned during installation but wasn't in the themes directory; turkalpmd's solution fixed this but perhaps the Mac installation documentation needs updating.

romkatv commented 1 year ago

The docs list several installation options. You need to pick one. Do not run one command from one installation option (say, oh my zsh) and another command from a different option (say, homebrew). Pick one method and stick with it. If the instructions of a chosen option contain several steps, perform all of them.

tristan-pv01 commented 1 year ago

For your reference, I followed both Homebrew installation steps, then the oh my zsh instructions when those didn't work on their own.

romkatv commented 1 year ago

turkalpmd's solution fixed this

That solution is literally copy-pasted from the installation instructions.

https://github.com/romkatv/powerlevel10k#oh-my-zsh

CasperCheuk commented 1 year ago

i just copy packages to oh-my-zsh dir ;problem solved. like this : cp -rf /home/casper/powerlevel10k /home/casper/.oh-my-zsh/custom/themes/

zenaku07 commented 1 year ago

Clone Powerlevel10k into your Oh My Zsh custom themes directory:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Set the theme name correctly in your ~/.zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

Save the ~/.zshrc file and restart your terminal or run source ~/.zshrc.

Now, verify that the theme is in the right directory:

ls -l $ZSH_CUSTOM/themes/powerlevel10k

You should see the powerlevel10k.zsh-theme file listed in the output.

With the correct installation and theme path set in your ~/.zshrc, the warning message should disappear, and Powerlevel10k should be loaded successfully as your Zsh theme.

tonykuttai commented 1 year ago

Follow the installation instructions: https://github.com/romkatv/powerlevel10k#oh-my-zsh. Specifically, make sure to perform this step:

  1. Clone the repository:

    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

    Users in China can use the official mirror on gitee.com for faster download. 中国用户可以使用 gitee.com 上的官方镜像加速下载.

    git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Once done, restart zsh with exec zsh.

This worked for me. Thanks

jerky33 commented 1 year ago

FYI, I accidentally ran the manual install when I should have run the command for the Oh-my-zsh install and I ended up with extra lines at the end of my ~/.zshrc file. Once I removed the incorrect theme folder in ~/powerlevel10k/ and the unneeded lines from the bottom of ~/.zshrc file and ran the correct command everything worked as expected. I hope this helps someone that may have mad the same mistake I did. Regards

OvidiuMihalcea commented 12 months ago

I already had a functional installation of the PowerLevel10k, but I had that error. For me the issue was that the ZSH_CUSTOM vas set to a value other than $HOME. I've commented that line, and I've sourced the .zshrc file with source ~/.zshrc

aronreisx commented 10 months ago

Clone Powerlevel10k into your Oh My Zsh custom themes directory:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Set the theme name correctly in your ~/.zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

Save the ~/.zshrc file and restart your terminal or run source ~/.zshrc.

Now, verify that the theme is in the right directory:

ls -l $ZSH_CUSTOM/themes/powerlevel10k

You should see the powerlevel10k.zsh-theme file listed in the output.

With the correct installation and theme path set in your ~/.zshrc, the warning message should disappear, and Powerlevel10k should be loaded successfully as your Zsh theme.

Changing from "powerlevel10k" to "powerlevel10k/powerlevel10k" solved the error message showing up. The theme was working fine from the beginning though, even with ZSH stating the theme wasn't found. My environment is Ubuntu 22 on WSL2.

romkatv commented 10 months ago

@aronreisx Your config is probably loading powerlevel10k twice, and potentially from two different places. You can verify this by removing the line that sets ZSH_THEME and restarting zsh with exec zsh. If you still see powerlevel10k after doing this, your config was indeed loading powerlevel10k twice. Without ZSH_THEME, it is now being loaded only once. It's a very good idea to load powerlevel10k just once from a single place.

malahmen commented 7 months ago

Clone Powerlevel10k into your Oh My Zsh custom themes directory:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Set the theme name correctly in your ~/.zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

Save the ~/.zshrc file and restart your terminal or run source ~/.zshrc.

Now, verify that the theme is in the right directory:

ls -l $ZSH_CUSTOM/themes/powerlevel10k

You should see the powerlevel10k.zsh-theme file listed in the output.

With the correct installation and theme path set in your ~/.zshrc, the warning message should disappear, and Powerlevel10k should be loaded successfully as your Zsh theme.

I've followed the install instructions just once. repository was properly cloned and in place. the theme was applied and showing as configured. but I had the stupid message every time. somehow my .zshrc file had ZSH_THEME="powerlevel10k" and not ZSH_THEME="powerlevel10k/powerlevel10k".

didn't figured out how that happened.

jzadra commented 6 months ago

This is happening to me as well.

ZewenKong commented 3 months ago

SOLVED this issue without reinstalling.

Just follow the steps: -

  1. copy your folder /powerlevel10k and paste it inside /.oh-my-zsh/themes/
  2. restart your terminal
  3. Start zshagain

After that it does not give the error again.

Thank you :)