Search code examples
macosterminalzshiterm2

How do I change the prompt in zsh?


I have iTerm (with zsh) and it looks like: enter image description here

And when I tap Enter: enter image description here

I want pin info about battery on the top of terminal, is it possible?


Solution

  • You could use Tmux to pin a battery indicator. Tmux is not part of Zsh or iTerm, but a pretty light-weight tool that is also useful for other things like window/pane management.