Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to give command line??



Hi, 

I am trying to color the command line. I know that this is possible by something like: 

PS1="%{"$'\033[03;32m'"%}> " 

But this gives the whole command line a single color. 

Is there a way - possibly using ZLE - to give different parts of the command line different colors, e.g. can I make the first word green, the second word red and so on? 

Thanks! 

Guido 


      



Messages sorted by: Reverse Date, Date, Thread, Author