Sourcing .zshrc again, when using zsh-autosuggestions in conjunction with zsh-syntax-highlighting causes zsh to exit #166
nadeemahmad
commented
Jun 6, 2016
•
This is a duplicate of #126 so I will be closing this ticket and following along there. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@zsh-users
This is a curios bug that only occurs in a particular use case. I will list the steps to reproduce.
Environment details:
Pre-requisites:
brew(and set as default shell)Instructions for re-producing bug:
1) Clone the
zsh-syntax-highlightingplugin and thezsh-autosuggestionsplugin:2) Source both plugins in
~/.zshrc, by adding the following lines in that file:3) Run
source ~/.zshrc4) After running the command above, explicitly press the Enter key again, and zsh should exit.
Changing the order doesn't make a difference. To be clear, this doesn't happen if you don't explicitly source
~/.zshrcduring the current session. I have seen a somewhat similar discussion in the prezto project, but I am not sure if it's the same problem. The factors that I am seeing are slightly different (part of the discussion there revolves aroundzle reset-promptwhich is not referenced anywhere in this project).I don't have a lot of expertise with zsh and these plugins, but I am happy to help debug this. I have a vanilla Mac OS X 10.11 environment in vagrant setup for testing.
Keep up the great work!