From 2920c227d3f8e6d8af1f2b0c3163badb95cde9b5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 16 Sep 2008 15:02:01 +0000 Subject: 25677: add %x and %I prompt escapes for shell source code debugging tidy up interface to doshfunc() --- Doc/Zsh/prompt.yo | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index 54dc3f609..c30bb0c3c 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -113,6 +113,11 @@ The line number currently being executed in the script, sourced file, or shell function given by tt(%N). This is most useful for debugging as part of tt($PS4). ) +item(tt(%I))( +The line number currently being executed in the file tt(%x). This is +similar to tt(%i), but the line number is always a line number in the +file where the code was defined, even if the code is a shell function. +) item(tt(%j))( The number of jobs. ) @@ -126,6 +131,11 @@ none, this is equivalent to the parameter tt($0). An integer may follow the `tt(%)' to specify a number of trailing path components to show; zero means the full path. A negative integer specifies leading components. ) +item(tt(%x))( +The name of the file containing the source code currently being +executed. This behaves as tt(%N) except that function and eval command +names are not shown, instead the file where they were defined. +) xitem(tt(%c)) xitem(tt(%.)) item(tt(%C))( -- cgit 1.4.1