I’ve wanted the virtual consoles to look like my regular terminal, so I read a bit about zsh, Konsole and powerlevel10k.
Using p10k configure
created ~/.p10k
and changed ~/.zshrc
to source it.
(Its largely similar to /usr/share/zsh/p10k.zsh
- except for the segment separators and prompt newlines)
As zsh - unlike bash - by default loads .zshrc
for login sessions that is also applied to the virtual console.
Basically what I wanted.
But because if the limited font of the virtual console the prompt isn’t rendered properly - it’s all the wrong special characters, not at all looking like a prompt should… (At least I assume that’s the cause from what I’ve read)
Google and the forums search didn’t turn up anything regarding this - which I found a bit strange, given that this is indicated to be the way to customize p10k on Manjaro here.
Surely others must have had this behaviour?
With what I’ve found, getting the virtual console to render a rainbow style prompt correctly seems impossible due to the font limitations of the virtual console. Can anyone confirm this or point me in the right direction?
So the only solution I currently can think of is setting some variable in .zprofile
- which is only processed for login shells - and having .zshrc
ignore config sections based on that variable.
But that feels rather hacky. Is there a better way of having a custom prompt for my terminals, while having another for the virtual console?