Add zsh session init debugging command

Marc Cornellà 2019-06-05 20:56:03 +02:00
parent 61e59c45e8
commit d746c5daa1
1 changed files with 6 additions and 0 deletions

@ -48,4 +48,10 @@ As a last resort, if you're getting weird behavior and can't find the culprit, r
```shell
zsh -xv &> >(tee ~/omz-debug.log 2>/dev/null)
```
Afterwards, reproduce the behavior (_i.e._ if it's a particular command, run it), and when you're done, run `exit` to stop the debugging session. This will create a `omz-debug.log` file on your home directory, which you can upload to [gist.github.com](https://gist.github.com/) and link to it on the issue you'll open next.
If you only need to debug the session initialization, you can do so with the command:
```shell
zsh -xvic exit &> ~/omz-debug.log
```