Sourcing .zshrc again, when using zsh-autosuggestions in conjunction with zsh-syntax-highlighting causes zsh to exit #166

Closed
nadeemahmad opened this Issue Jun 6, 2016 · 1 comment

1 participant

@nadeemahmad
nadeemahmad commented Jun 6, 2016 edited

@zsh-users
This is a curios bug that only occurs in a particular use case. I will list the steps to reproduce.

Environment details:

  • Kernel Version: Darwin 15.5.0
  • System Version: OS X 10.11.5
  • Zsh Version: zsh 5.2 (x86_64-apple-darwin15.0.0)

Pre-requisites:

  • Mac OS X El Capitan (version 10.11) machine
  • Zsh installed via brew (and set as default shell)

Instructions for re-producing bug:

1) Clone the zsh-syntax-highlighting plugin and the zsh-autosuggestions plugin:

git clone https://github.com/zsh-users/zsh-autosuggestions ~/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/zsh-syntax-highlighting

2) Source both plugins in ~/.zshrc, by adding the following lines in that file:

source ~/zsh-autosuggestions/zsh-autosuggestions.zsh 
source ~/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

3) Run source ~/.zshrc
4) 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 ~/.zshrc during 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 around zle reset-prompt which 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!

@nadeemahmad nadeemahmad referenced this issue in zsh-users/zsh-syntax-highlighting Jun 6, 2016
Closed

tmux panes die upon creation #276

@nadeemahmad nadeemahmad changed the title from Using zsh-autosuggestions in conjunction with zsh-syntax-highlighting causes zsh to exit to Sourcing .zshrc again, when using zsh-autosuggestions in conjunction with zsh-syntax-highlighting causes zsh to exit Jun 6, 2016
@nadeemahmad
nadeemahmad commented Jun 6, 2016 edited

This is a duplicate of #126 so I will be closing this ticket and following along there. Thanks!

@nadeemahmad nadeemahmad closed this Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment