[ZSH] Disable vi mode for shared setups

This commit is contained in:
murgi
2024-10-14 16:38:40 +02:00
parent 07a66952ad
commit 87d85a4e34

View File

@@ -12,6 +12,9 @@ mkdir -p ${ZDOTDIR:-~}/.cache/zsh
static_file=${ZDOTDIR:-~}/.cache/zsh/.zsh_plugins.zsh
if [[ ! -f ~/.zsh/.shared_config ]]; then
plugins_txt=${ZDOTDIR:-~}/.zsh/.zsh_plugins.txt
# Vi mode
bindkey -v
VI_MODE_SET_CURSOR=true
else
plugins_txt=${ZDOTDIR:-~}/.zsh/.zsh_plugins_shared.txt
fi
@@ -38,9 +41,6 @@ alias vim=nvim
alias sudo='sudo '
alias cgrep="grep --color=always"
export EDITOR='nvim'
# Vi mode
bindkey -v
VI_MODE_SET_CURSOR=true
# Allow access to all libvirt vms
export LIBVIRT_DEFAULT_URI="qemu:///system"