Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pipe every command
- X-seq: zsh-users 17378
- From: shawn wilson <ag4ve.us@xxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: pipe every command
- Date: Mon, 5 Nov 2012 17:22:49 +0000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yfc2FFwAoteCV1y7UxFkTyCetirLBgI4qUbO/GI65JM=; b=uNqvE9VMJN7XpzE4O0C5QsUSwvhdsYm+MfA1RlOtepJ0pp8dBjMiFndHPPMm34zvzc wvs+eUi+Z2ZSzTxz2pvg90Io+nRQESCgz2sUO3AYc/+AcF7ubLHM0gGYfdFA4nIrApl0 zqiUwzkcaRv06CnlchiEG0a3BJcNmp7RhZ4jGfHA9UHyDmfzsAblLDleVItCVSVSNm3p NA+Lfrzc+1IlIQeN89pk5wsOXFRxrXEN2dFt+mMvQFxbU1fINcPjYOMXscyLwzX51y4I dHmxDq5YjIw2Lcx4/1vbdnIO+Fd5x+OZ6qGHOmpSIE3dTvT57fupoQ0eI4IiDv7hVyBg uIjw==
- In-reply-to: <alpine.LNX.2.01.1211050949320.24430@hp.internal>
- 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
- References: <CAH_OBicVu1vF-D03roo-nLNq0f5wyGX2UaxcEAgLO6tnh1YxCg@mail.gmail.com> <alpine.LNX.2.01.1211050949320.24430@hp.internal>
On Mon, Nov 5, 2012 at 3:03 PM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> On Mon, 5 Nov 2012, shawn wilson wrote:
>
>> 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
>
>
> There might be a way to do this in the way you're talking about, but I
> accomplish a similar goal (being able to easily pipe things through `less`)
> using global aliases:
>
> alias -g L='| less'
>
> You could use:
>
> # H = highlight
> alias -g H='| source-highlight -f esc256 -s shell'
>
not as nicely baked in as i was hoping, but i guess it'll work. thanks
Messages sorted by:
Reverse Date,
Date,
Thread,
Author