zsh-vi-mode
zsh-vi-mode copied to clipboard
zvm doesn't work after source .zshrc
General information
- Terminal program: iTerm 3.4.15
- Operating system: MacOS 12.2.1 & Debian 11 (bullseye)
- ZSH framework: oh-my-zsh
- ZSH version: 5.8
- ZVM version: v0.8.5
Basic examination
- [x] I have read through the README page
- [x] I have the latest version of zsh-vi-mode
- [ ] I have tested with another terminal program
Problem description
It's tested on my virtual machine, which behaves like my mac.
Vim mode works when login, but doesn't work after source ~/.zshrc
...
I have to re-login to make it work.
Same on my mac, I have to reopen the iTerm to make it work.
my .zshrc:
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
plugins+=(zsh-vi-mode)
source $ZSH/oh-my-zsh.sh
Reproduction steps
- Install oh my zsh
- Install zvm
Expected behavior
zvm works after source ~/.zshrc
meet same problem
I am also facing the same issue.
~~I can't reproduce this.~~
~~New user on arch box. Install oh-my-zsh using curl method. Changed my .zshrc to yours.~~
~~First and foremost, oh-my-zsh won't even load those plugins, they don't exist.~~
~~There is no zsh-vi-mode plugin for oh-my-zsh. It's vi-mode.~~
~~Try using this configuration (with an up-to-date install of oh-my-zsh) and see how it works. It works fine for me.~~
EDIT: Ignore that above. Yes, I can reproduce this too.
If you're already cloning the zsh-vi-mode plugin, why don't you just source the plugin directly?
Hey guys, I found a simple solution to this. If you are using omz, just "omz reload" after sourcing the .zshrc. Then everything will goes well. Considering the "source .zshrc" operation is not that often for me, This solution is enough for me.
+1
I can confirm that zsh-vi-mode
does not work for me either. I was able to fix it by running omz reload
as per @kuang22 advice.
+1
+1
Hi @stimw,
Thanks for your problem, I will follow up as soon as possible, please be patient. : )
Thanks & Regards
Hi @jeffreytse,
I have this problem too. Is there a solution for this bug?
For those who don't use omz, I have another way using exec
. You could use exec zsh
after source ~/.zshrc
.
I make an alias for it.
alias so='source ~/.zshrc && exec zsh'