Open rjeye opened 5 days ago
Probably a bug in the terminal, or perhaps in the window manager.
I see. Is there still some way this could be fixed by manually editing the cached instant prompt generated ? It could be because of the terminal (Tilix) could be sending the wrong value of the width at the instant it starts. Window manager is the default tiling window manager that ships with PopOS but might not be the source of the bug since the issue appears on both the regular windowed terminal as well as the built-in Quake mode that Tilix supports.
Could you verify that the issue isn't caused by something else loaded your zsh startup files? To do that, replace your .zshrc
with this:
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 [[ ! -e ~/powerlevel10k ]]; then
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
fi
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
Then restart your terminal twice.
For a split second, the right side of the prompt appears in the middle of the terminal (in my settings, it currently shows the time taken for the command) before settling down correctly. This happens every time I open a new terminal. Looks like it has mostly to do with the Instant Prompt. Any pointers as to what I can fix ? My
.zshrc
is pasted below for reference. Attached the current.p10k.zsh
as well. TIA!p10k.zsh