On Tue, Jun 08, 2010 at 05:26:38PM +0200, Leander Jedamus wrote: > How can I avoid writing all that code again and again? Try precmd() function. man zshall -> SPECIAL FUNCTIONS -> Hook Functions. -- Regards, -- Sir Raorn. --- http://thousandsofhate.blogspot.com/