Close #147 PR: Preserve preprompt on Ctrl+L. Fixes #145

This commit is contained in:
Mathias Fredriksson
2015-07-18 17:27:18 +02:00
committed by Sindre Sorhus
parent 2509a1fac0
commit ba1f064357
2 changed files with 23 additions and 0 deletions

View File

@@ -153,6 +153,12 @@ antigen bundle sindresorhus/pure
## FAQ
### My preprompt is missing when I clear the screen with Ctrl+L
Pure doesn't register its custom *clear-screen* widget if it has been previously modified. If you haven't registered your own zle widget with `zle -N clear-screen custom-clear-screen` it might have been done by third-party modules. For example `zsh-syntax-highlighting` and `zsh-history-substring-search` are known to do this and they should for that reason be **the very last thing** in your `.zshrc` (as pointed out in their documentation).
To find out the culprit that is overriding your *clear-screen* widget, you can run the following command: `zle -l | grep clear-screen`.
### I am stuck in a shell loop in my terminal that ask me to authenticate. What should I do ?
[This is a known issue](https://github.com/sindresorhus/pure/issues/76).