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

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



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