Closed MaxBill closed 5 years ago
The presence and the size of the gap depends on your font. The arrows you see in your right prompt are made of two symbols: a left-pointing triangle and a space. You can print a blue arrow manually with print -P '%F{blue}\uE0B2%f%K{blue} %k'
.
To eliminate the gaps you can either try another font (I'm using Meslo LG S Regular Nerd Font Complete Mono in the above screenshot) or change the style of your prompt to get rid of the arrows altogether.
I'm personally using the latter approach combined with Powerlevel10k (it's the same as Powerlevel9k but much faster). By starting with Pure Power instead of the default configuration you'll get a modern, functional and fast prompt rather than being stuck with visual noise. Another advantage is that it works with any font. You can try it like this:
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
( cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower )
# This will make your prompt faster without changing its appearance.
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
# This will change the appearance of your prompt. You can edit ~/.purepower to customize it further.
echo 'source ~/.purepower' >>! ~/.zshrc
Thank you for answering my questions. Installed Powlevel10k or has a vertical display. I'll try to install the font you said.
The picture above is my terminal, with vertical lines.
Seeing how other people's tutorials are configured is like this:
Replacement of another terminal also shows a vertical line, what is the reason?