diff --git a/troubleshooting.md b/troubleshooting.md index 75b4b69..af22a8f 100644 --- a/troubleshooting.md +++ b/troubleshooting.md @@ -36,6 +36,12 @@ cat ~/.local/share/resh/history.reshjson | sed 's/^v[^{]*{/{/' | jq . You will need `jq` installed. +## Configuration + +RESH config is read from one of: +- `~/.config/resh.toml` +- `${XDG_CONFIG_HOME}/resh.toml` + ## Logs Logs can be useful for troubleshooting issues. @@ -44,19 +50,8 @@ Find RESH logs in one of: - `~/.local/share//resh/log.json` - `${XDG_DATA_HOME}/resh/log.json` -## Disabling RESH - -If you have a persistent issue with RESH you can temporarily disable it and then enable it later. -You won't lose your history nor configuration. - -Go to `~/.zshrc` and `~/.bashrc` and comment out following lines: -```sh -[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc -[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh # bashrc only -``` -The second line is bash-specific so you won't find it in `~/.zshrc` +You can get more detailed logs by setting `logLevel = "debug"` in `~/.config/resh.toml` -You can re-enable RESH by uncommenting the lines above or by re-installing it. ## Common issues