Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: option to show file:line everytime echo is called?



Thanks; `set -x` is rather verbose, is there any other way to just alter
echo to show file:line (or similar) ?


On Tue, Jan 10, 2017 at 1:30 AM, Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:

> On Mon, 9 Jan 2017 15:55:08 -0800
> Timothee Cour <timothee.cour2@xxxxxxxxx> wrote:
> > is there an option to show file:line everytime echo is called? eg:
> >
> > set -magic_echo_option
> >
> > echo myvr=$myvar #assuming this is at line 19
> >
> > #shows:
> >
> > /home/timothee/.zshrc:19 myvar=FOO
>
> "set -x" does this in most shells.
>
> You can change the information by altering the variable PS4, but it's
> probably good enough.
>
> pws
>


Messages sorted by: Reverse Date, Date, Thread, Author