Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
coloring the command-line?
- X-seq: zsh-users 12628
- From: "Aaron Davies" <aaron.davies@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: coloring the command-line?
- Date: Tue, 19 Feb 2008 18:23:36 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=MaGMRKWoKMk5VDn58Wj074+3Zvj+7ZnrIN3y/2ZEASE=; b=wJEY0HElN7i3oj8uGlCVs6wN/IDE+H2WyBCnJTBJFuiaHU33rWct78u4photcWyqtuVRAtLoQKmPzYl+j84d9RnmWWsOUOOvD8RFYtP33a6G2fbZ5tG6PdLDE7yXBbBhjohqfrXo8F0CrKhs2WC8IglrVX0Dtw/L9pdA7XLEdSw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=xMLRm19/35cL+fovonplEJ25A0Eo/RdJZjw1KcNRIRR5DT7JF9vaGlL5vbDNjg3tkjy7J6wi0V4gJv+s1sodioHzRjNMWCPRxi1zIb0aVKBthG8zqK4zeymOWXy9Vt3HW8oLCbUZauGYrLBLCMt6sCszaMrwz9JEoGcAvvAt4xA=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
i'd like to have all the commands i type in (some) zsh shells appear
in a color other than regular gray
at the moment, i'm doing this in PS1
export PS1='^[[0;31m%# '
and it works decently, but has the drawback of screwing up alignment
in some odd ways:
if i use ^R to start a history search, the cursor jumps forward eight characters
if i type off the end of the screen, it loops around to the beginning
if i pull up a more-than-one-screen command with an up-arrow and start
backing up to edit an early part of it, the cursor jumps to the line
above
etc.
i assume there's a better state to leave the tty in that doesn't have
these side effects?
--
Aaron Davies
aaron.davies@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author