Closed alexpts closed 3 years ago
Cannot reproduce. Here's what I've tried:
apt-get update && apt-get install -y zsh curl git mc
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
~/.p10k.zsh
with the content from this issue description.~/.zshrc
with the following content:
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
source ~/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
cd / && mc
mc
as expected (not black screen): What's different in your instructions?
OS: mac os 11.4 Iterm2: 3.4.8 zsh: 5.8 p10k: 83d80fa308f6f8a496205a1ad5cb2ae4c4be55a6
cat ~/.zshrc:
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
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
cd / && mc
Please try the same thing but with a completely empty ~/.zshrc
.
It works correct with empty ~/.zshrc
or other zsh theme. Problem reproduce in p10k
theme only.
Odd. I've just tried it on my macbook and I get black screen in mc with empty ~/.zshrc
.
I don't intend to debug this further. If you find out what's wrong, please post a comment. Closing as Won't Fix / Not Reproducible.
This might be relevant: https://github.com/Homebrew/homebrew-core/issues/70326
MidnightCommander (mc) show black screen on terminal for not home directory. Correct work only home directory. Any ZSH theme work.
My p10k config: