Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: option to show file:line everytime echo is called?
- X-seq: zsh-users 22346
- From: Timothee Cour <timothee.cour2@xxxxxxxxx>
- To: Anthony Heading <ajrh@xxxxxxxx>
- Subject: Re: option to show file:line everytime echo is called?
- Date: Tue, 10 Jan 2017 04:50:30 -0800
- Cc: Timothee Cour <timothee.cour2@xxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=RHSkN/spN5FyLJIy5gFEv7i0WtIrLbDl/WT69f/3feQ=; b=VCYCOHM/DR1VP1nA2kXLmJhJ4NteAHf9klnIlI8haZBX6DF4op+wkuoSavhtmMh0OQ DqpBCXg3sVrA6xVosMSofWLZrpQlXaVq5B0csO7JD69yD5cscQtcEru13b//MCa6OhiA 8ty0KCB34Oqo8aIq4slCqaLHAchsnJhMKjqZJNbTyUNPXJbztH+scKNKW6GNpxCmFXJs Eq/g4AffLpEw7Ldo7q6/EbllEMRLJBBhAJZUTx+koH9sCM/Ze1Jf7DD51XPelEgtMbrw 3b2p200/KqHe77/nZGr7jIPXx4+Fut/4T+dCtQt+ayq5KYjFKCqcSV6j/e5WQ9ervipn 066w==
- In-reply-to: <20170110123002.s4esovwcepqizzd5@begemot.ajrh.net>
- 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: <CANri+EzTiiKkfeDODR8PyBc=khLFONk738sFp7Vpo4uzwKMoXw@mail.gmail.com> <20170110123002.s4esovwcepqizzd5@begemot.ajrh.net>
- Sender: timothee.cour@xxxxxxxxx
thanks!
On Tue, Jan 10, 2017 at 4:30 AM, Anthony Heading <ajrh@xxxxxxxx> wrote:
> On Mon, Jan 09, 2017 at 03:55:08PM -0800, Timothee Cour wrote:
> > is there an option to show file:line everytime echo is called? eg:
> > echo myvr=$myvar #assuming this is at line 19
> > #shows:
> > /home/timothee/.zshrc:19 myvar=FOO
>
> Maybe use an alias?
>
> #!/bin/env zsh
> alias echo='echo ${0:A}:$LINENO'
>
> myvar=FOO
>
> echo myvr=$myvar #this seems actually to be line 6
>
>
> prints
>
> /home/ajrh/x:6 myvr=FOO
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author