Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to give command line??
- X-seq: zsh-users 14458
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How to give command line??
- Date: Mon, 5 Oct 2009 13:49:55 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1254775795; bh=WWNS3QY8/6etqAIZoHknHT+AZgo38j67r3QpU3M118k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=v6X4TV9DQISXfk2x5UdEc+ZXRZNl0j6Z/q6ZV9G0qkHaz6t+j23sOs+UnLK3v5ykShbbGEYsJe8FhEeV673Vz2EK8Zk0gdXiQM6tubJ3jKz61ieeERUMGHtaPFU2jcsmNP7khcalq/UoGyM5ZRyPomfq7myJ7kp/JFsMsrwZP1Y=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=e+RnmmXs+AVvt9Lq5Pp4uCH9Y50GEYX4GN5HCKY0J7cCsNy6bCZ4bUnWooOtn99Z/bjM5rQcA1edd7nYv3WDK9rK0zO8GsJYd8n9amdLe8NWSZnzWXCzpwjEVE6t605FvlXQ9aV8fwBrMCP8DoY1Ohcp2DiJHN0Ls2WObbNYH7c=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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