You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading and debugging completion scripts is difficult. Here is a way OSH helps. This can certainly be improved.
It helps to open two tmux panes, or two terminals side-by-side. Then you can type on the left and see debug logs on the right.
$ mkfifo _tmp/debug # named pipe
$ misc/complete.sh osh-trace # do this on the LEFT.
# Type commands here like 'source testdata/completion/git'.
$ cat _tmp/debug # do this on the RIGHT.