powerlevel9k
powerlevel9k copied to clipboard
parse and command not found error
Thanks for opening an issue! For a project that deals with as many different things as P9k, debugging problems can be difficult. Please follow the guide, below, to create a bug report that will help us help you!
Before Opening a Bug
P9k is lovingly maintained by volunteers, and we are happy to help you! You can help us by first making sure your issue hasn't already been solved before opening a new one. Please check the Troubleshooting Guide first. Many issues are actually local configuration problems, which may have previously been solved by another user - be sure to also search the existing issues before opening a new one.
Once you've done these things, you can delete this section and proceed =)
Describe Your Issue
What is happening? Powerlevel won't run in my case. Everytime I start iterm2 this comes up.
/Users/<user>/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme:9: command not found: ^M
/Users/<user>/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme:18: command not found: ^M
/Users/<user>/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme:23: command not found: ^M
/Users/<user>/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme:148: parse error near `elif'
iTerm is still fully functional though and it looks like this:
user@user-MBP:~%
Have you tried to debug or fix it?
Yes, I have tried resetting the font cache, installed all the fonts from font-nerd. Tried googling but nothing comes up.
I have changed the font on my iterm2 as well.
Environment Information
This information will help us understand your configuration.
- ZSH
- zsh 5.3 (x86_64-apple-darwin17.0)
- ZSH Framework
- Oh-My-ZSH
- Installation:
- Cloned the repo and to be specific it's this option: Option 2: Install for Oh-My-ZSH
- Terminal Emulator:
- iTerm2
This looks to be an issue with newlines, with CRLF
instead of just LF
to be more precise. I think this might come from some git setting. Could you please check if you set the following git options:
cd $ZSH_CUSTOM/themes/powerlevel9k || cd ~/.oh-my-zsh/custom/themes/powerlevel9k
git config core.eol
git config core.autocrlf
I think autocrlf
might be set to true
.
I have the same issue. autocrlf
is set to true
. The error persist even if I change that config value to false
.