-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vi-mode plugin makes zsh painfully slow in OSX Mavericks #2189
Comments
I can confirm - disabling vi-mode made console responsive again. |
same here |
Seeing the same behavior. Either of this lines from the vi-mode.plugin will cause the slowdown:
|
+1 on this, just discovered this as well. |
Same here. Although I thought it was the theme at first, I commented out ZSH_THEME and its fast again. Then I tried turning off vi-mode and turning on ZSH_THEME and it is still fast. There's something about these two. |
Had the same issue, it makes the shell completely unusable with vi-mode enabled |
Did some troubleshooting and found the same as @poymode last night. Looks like the issue happens when calling:
Based on the ZLE docs here, the prompt is redrawn when reset-prompt is called. I found that commenting out |
I updated git to 1.8.4.1 and enabled vi-mode again, seems to fix the responsness for me |
I removed the git under directory /usr/bin and installed git v1.8.3.2, back to normal now. Or just comment |
Same problem here. I did notice that the terminal title switched to I have disabled the plugin, and simply put |
Same here. Disabling vi-mode plugin does the magic. Any one wants to commit a fix? |
same here. comment following lines in ~/.oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh to fix this
|
Using an updated git also fixed it for me. The Apple version of git seems to cause the problem, I installed git from homebrew instead. |
Confirmed that it works with upgraded git-1.8.4.1. |
👍 installing git from homebrew fixed this. I saw the terminal title flick from |
same problem, thanks~ |
Same problem with Also seeing |
@cseelus I would double check that your path leads to homebrew's git before Apple's git
|
@sschlesier before posting, i did this:
|
Switching to homebrew git makes zsh generating new prompt faster but still not quite fast as in the case I remove git / vi-mode plugin |
+1, same issue. |
+1 |
the output command ls dissapear on dotfiles directory |
UPDATE: I have run into a similar issue, although I am not using the vi-mode plugin like most other people here. I am using oh-my-zsh with the agnoster theme (although I have tested this with other themes and the same thing happens. I believe the use of git for the prompt is the common factor here). The command line is only very slow when I am inside of a git repo. I have added "bindkey -v" to my own personal vim.zsh file inside of ~/.oh-my-zsh/lib/. Inside of this file I also have this small bit of code that visually shows which mode zle is currently in. function zle-keymap-select zle-line-init { My belief is that git and "zle reset-prompt" are not playing well together. Every time "zle reset-prompt" is called, git is being used again to redraw the prompt, which I believe is the root of all of this lag. Removing "zle reset-prompt" fixes any kind of lag. I'm not sure of a workaround yet but it is quite frustrating because vi mode in zsh is a pain in the ass to use without some kind of visual indicator of the current mode. I am currently trying to install a newer version of git and will report back with any changes. |
I'm on Mavericks 10.9.1 too, using vi-mode as well, and I had this issue. I was originally using Apple's git, and I can confirm that just by switching to homebrew's git fixed the issue. |
had to comment out the following line in my antigen.conf antigen-bundle vi-mode zsh is super fast now. BTW, this is on Mavericks 10.9.1. |
|
I'm on OS X 10.9.2, using vi-mode plugin, using git plugin, displaying git_prompt_info on RPROMPT, and using Apple's git. I encountered this issue. Updating git to v1.9.0 via |
removed vi-mode that fixed it for me |
@bradtse Having the same issue. Commenting out reset prompt removed the problem lag when inside a git repo. Current GIT version is 1.9.1 but the unfortunately the problem still exists. |
Still an issue. Apple's git on my machine was Did |
Same thing here, even a simple
|
On OSX 10.9.4, using zsh and Git (git version 1.8.5.2 (Apple Git-48)). The following fixed the slow down: I only have git and vi-mode as plugins in |
+1 for updating Git! I just ran |
+1, updated Git and now... it's awesome. |
I didn't have this issue on OS X 10.9 (Mavericks); but I am seeing it after upgrading to OS X 10.10 (Yosemite). |
+1 for Yosemite and the Apple Git 1.9.3. Installing Git with brew fixes the sluggishness. |
Perhaps someone should close this issue and edit the original post to contain the fix? After solving this problem months back and forgetting about it, I just got set up on a new imac and was dealing with the painful slowness again. Googled and found this issue again – Including this information in the first post will save future googlers the effort of reading the first half of this thread and the "me too"s before someone suggests the correct solution. |
+1 more confirmation that the brew version of git fixes slowness on Yosemite |
If you hit this...
|
OMG, forgot about this and it was driving me nuts on a laptop I just configured :) |
Switching to homebrew's Git resolved this for me as well, but I'm curious why. Anyone have an idea as to why Mac's pre-rolled version of Git is giving ZSH so much trouble? |
Tested in Yosemite (10.10.3), installing git 2.4.3 with brew, same great results 👍 |
+1 to installing git 2.4.3 homebrew. |
Same problem in 10.11 too; don't use Apple's version of |
Experienced the same issue in El Capitan 10.11. Installing git using brew solved the problem. |
+1 Fixed on OS X 10.9.5 Mavericks by replacing native Apple Git 1.9.3 with Git 2.5.1 from homebrew. |
+1 Fix for brew install git |
This also fixed my issue, but wouldn't it be better to add a command to zsh that would allow the functionality for vi-mode but not reset every plugin in the process (eg. git)? |
I also encounter same problem, my environment is
I only use git and vi-mode plugin, I fixed it by comment a line in .oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh
|
not perfect but 100% faster switch between the vi-modes... |
in
.zshrc
:zsh is now extremely slow
zsh now behaves normally
The text was updated successfully, but these errors were encountered: