[LUNI] Show us your PS1!
Mike Crawford
mike at tuxnami.org
Fri Jun 6 10:36:43 CDT 2003
On Thu, 2003-06-05 at 21:13, Martin Maney wrote:
> On Thu, Jun 05, 2003 at 07:41:50PM -0500, Mike Crawford wrote:
> > PS1="\[\e[30;1m\][\[\e[35;1m\]\$?\[\e[30;1m\]]
> > \[\e[0m\]\[\e[31m\]\h\[\e[37m\]:\[\e[34;1m\]\w\[\e[30;1m\]\\$
> > \[\e[0m\e7\e[1G\e[1H\e[1K\e[30;1m[\e[33m\j\e[30;1m]
> > [\e[32;1m\!\e[30;1m] [\e[36m\u\e[30;1m] [\e[31;1m\d\e[30;1m]
> > [\e[35m\@\e[30;1m] [\e[0m\e[34m`uname -sr`\e[30;1m]\e8\]"
>
> That's just awful! :-)
Sure, it's one helova hack to get what I want, but it works. :)
especially the ASCII codes to save the cursor pos, reset it to 0, and
then recall it. That took me quite some time to get right.
mike
More information about the luni
mailing list