You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup zsh-vi-mode on macOS but kept receiving the following messages when opening a new shell:
zvm_config:2: command not found: zvm_cursor_style
zvm_config:3: command not found: zvm_cursor_style
To rule things out, I setup a CentOS VM, installed zsh and git, and then setup zsh-vi-mode according to the "Manually" instructions.
I then followed the instructions from the README under "Also, custom your colorful cursor style as below"
Now every time the shell starts I get told that zvm_cursor_style can't be found.
Full .zshrc:
# The plugin will auto execute this zvm_config function
zvm_config() {
# Retrieve default cursor styles
local ncur=$(zvm_cursor_style $ZVM_NORMAL_MODE_CURSOR)
local icur=$(zvm_cursor_style $ZVM_INSERT_MODE_CURSOR)
# Append your custom color for your cursor
ZVM_INSERT_MODE_CURSOR=$icur'\e\e]12;red\a'
ZVM_NORMAL_MODE_CURSOR=$ncur'\e\e]12;#008800\a'
}
source $HOME/.zsh-vi-mode/zsh-vi-mode.plugin.zsh
Thanks for your issue, and this is a bug after further verification, I will fix it as soon as possible. Also, welcome to star this project for further update in the future. : )
When using zvm native commands in `zvm_config`, such as `zvm_cursor_style`,
you will not be able to invoke them, as they haven't be defined at the
moment `zvm_config` is invoked.
General information
Please report the following information as possible as you can:
Basic examination
Problem description
I setup zsh-vi-mode on macOS but kept receiving the following messages when opening a new shell:
To rule things out, I setup a CentOS VM, installed zsh and git, and then setup zsh-vi-mode according to the "Manually" instructions.
I then followed the instructions from the README under "Also, custom your colorful cursor style as below"
Now every time the shell starts I get told that
zvm_cursor_style
can't be found.Full .zshrc:
Reproduction steps
source ~/.zshrc
Expected behavior
No error message.
The text was updated successfully, but these errors were encountered: