zsh-users
 help / color / mirror / code / Atom feed
* Highlighting the command line based on arbitrary rules
@ 2013-06-10 13:54 Richard Hartmann
  2013-06-10 15:23 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Hartmann @ 2013-06-10 13:54 UTC (permalink / raw)
  To: zsh-users

Dear all,

this may be approaching the clinically and/or criminally insane, but
is it possible to highlight sections of the command based on arbitrary
rules?

My specific use case is to detect git commit message subjects which
are longer than the recommended 50 characters as such:

    git commit foo/bar -m 'foo/bar: More gizmos, less snafus, and a
general disregard of subject length'

I would want everything after 'general' would be highlighted and,
ideally, not run the highlighting code unless `git ` is at the
beginning of the command line.


Again, this may be a really stupid, or even impossible, idea but being
stuck at an airport without Internet connection but a git repo, a TODO
list, and a massive hangover make this look good.


Thanks,
Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-10 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-10 13:54 Highlighting the command line based on arbitrary rules Richard Hartmann
2013-06-10 15:23 ` Bart Schaefer
2013-06-10 15:37   ` Jérémie Roquet
2013-06-10 15:38   ` Richard Hartmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).