Right now my iTerm2 looks like this…
Everything is the same color and is hard to read. Can I make any of the Prompt, Command, and Output different colors like this?
bashiterm
Right now my iTerm2 looks like this…
Everything is the same color and is hard to read. Can I make any of the Prompt, Command, and Output different colors like this?
Best Answer
There's a pretty exhaustive description of editing the bash prompt here there might be some linux specific stuff, but most of it is generic bash stuff.
But just for getting started, I recommend this bash profile generator
It is pretty simple, so I've since learned more and my prompt looks like:
using:
which is pretty useful when dealing with git. Everything before the
export PS1=
is what enables the git branch to appear.The ? is from my first foray into bash prompt editing after I read this blog post.