[ZSH] Defensive nvim aliasing
This commit is contained in:
committed by
Fabian Ising
parent
08f7df77b5
commit
3d24d4aad5
+3
-2
@@ -123,10 +123,11 @@ setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording en
|
|||||||
# Clear screen by ctrl+q
|
# Clear screen by ctrl+q
|
||||||
bindkey '^q' clear-screen
|
bindkey '^q' clear-screen
|
||||||
|
|
||||||
alias vim=nvim
|
(( $+commands[nvim] )) && alias vim=nvim
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
alias cgrep="grep --color=always"
|
alias cgrep="grep --color=always"
|
||||||
export EDITOR='nvim'
|
(( $+commands[nvim] )) && export EDITOR='nvim'
|
||||||
|
(( $+commands[nvim] )) && export VISUAL='nvim'
|
||||||
|
|
||||||
# Allow access to all libvirt vms
|
# Allow access to all libvirt vms
|
||||||
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
||||||
|
|||||||
Reference in New Issue
Block a user