From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6542 invoked by alias); 5 Nov 2012 08:31:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17375 Received: (qmail 28002 invoked from network); 5 Nov 2012 08:31:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ycjMkVwolqiIeHFNpfHGqNXPmaoW6N564YVDeRA0zQI=; b=Q8X+ht1/fqF4clifDShWfa9PPjPHbpJTLrEOOLOIitnbE1u+Hucy1csxA6YrdjoqEz eLiiX9LolzSowo1euPnIQWANwGGjhGRlxNU1yJLL/0wTmdG4n9K/GKKGODwwMShEJS4t DnBoqEzLMaxMCMO7Z5DhTh0zN5em0MfxoXErk81hmqUEsG0DvWXsPWZf3EwP/FmWi1lp 8B13X8h/fIl8WGHPhvervnJPWFwh+ewlzSCE5OAoiSOZrZidM2t9uIdsGGUpOjGvO88G GwqboErjwtq/8hyGCp6BY8XN83PD3XT9cUQoKQivEP/EBacKY2zrTB4DVWRtNcblgGKq Zulw== MIME-Version: 1.0 From: shawn wilson Date: Mon, 5 Nov 2012 08:23:50 +0000 Message-ID: Subject: pipe every command To: Zsh Users Content-Type: text/plain; charset=UTF-8 is there a way to put every command through a pipe or redirect? i'd prefer some way that i can put logic in so that i can exclude some commands. but, basically i want everything to go through 'source-highlight' so: ps ax | grep ssh will end up: ps ax | grep ssh | source-highlight -f esc256 -s shell and: sa would end up: sa | source-highlight -f esc256 -s shell sa doesn't look as nice as ps with this option, but hopefully i'll be able to determine what command was given and have some logic to give different options or none at all (for interactive commands like vim or tmux, this might not be so good - it fails hard with vim anyway).