fish-shell icon indicating copy to clipboard operation
fish-shell copied to clipboard

Request: Fish Trace depth

Open tennox opened this issue 3 years ago • 2 comments

fish, version 3.5.0

Would be amazing if e.g. set fish_trace 1 would only print first-level traces (one indentation level), as I often only want to see the commands a script executes, but not everything inside them.

As this would be backwards-incompatible I thought instead to add a fish_trace_depth variable.

tennox avatar Jul 13 '22 09:07 tennox

why not use grep:

fish -c "fish_trace=1 ls" &| grep '^--->'

krobelus avatar Jul 31 '22 18:07 krobelus

Well, it's a good workaround, thanks. But this is rather cumbersome and has some gotchas when dealing with subshells like environment, quoting, et cetera. Definitely not a solution.

tennox avatar Aug 05 '22 18:08 tennox