fish-shell
fish-shell copied to clipboard
Request: Fish Trace depth
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.
why not use grep:
fish -c "fish_trace=1 ls" &| grep '^--->'
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.