Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
pipe every command
- X-seq: zsh-users 17375
- From: shawn wilson <ag4ve.us@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: pipe every command
- Date: Mon, 5 Nov 2012 08:23:50 +0000
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author