[ZSH] Defensive nvim aliasing

This commit is contained in:
Fabian Ising
2026-07-10 14:57:28 +02:00
committed by Fabian Ising
parent 08f7df77b5
commit 3d24d4aad5
+3 -2
View File
@@ -123,10 +123,11 @@ setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording en
# Clear screen by ctrl+q
bindkey '^q' clear-screen
alias vim=nvim
(( $+commands[nvim] )) && alias vim=nvim
alias sudo='sudo '
alias cgrep="grep --color=always"
export EDITOR='nvim'
(( $+commands[nvim] )) && export EDITOR='nvim'
(( $+commands[nvim] )) && export VISUAL='nvim'
# Allow access to all libvirt vms
export LIBVIRT_DEFAULT_URI="qemu:///system"