0

I am using iTerm2 and zsh on my mac.

I'd like to be able to easily differentiate between which panes are ssh'd and which ones are local. It'd be awesome if I could change the colors for these different cases.

Is this possible?

johncorser
  • 9,262
  • 17
  • 57
  • 102

1 Answers1

0

Let's say you current prompt is:

_PROMPT=%n@%m:%c\ $\ 

Note the space character after \. Add some colors:

_PROMPT=%B%F{green}%n@%m%b:%B%F{blue}%c%b\ $\ 

enter image description here

Similarly, use different colors on the remote machine.

svlasov
  • 9,923
  • 2
  • 38
  • 39