[zsh] Use neovim as vim if available
This commit is contained in:
parent
2f6039abad
commit
c9c60062ce
1 changed files with 7 additions and 1 deletions
8
zshrc
8
zshrc
|
@ -26,7 +26,13 @@ if [ -d "$HOME/emsdk" ]; then
|
||||||
PATH="$PATH:~/emsdk:~/emsdk/node/12.9.1_64bit/bin:~/emsdk/fastcomp/emscripten" #:~/emsdk/fastcomp/emscripten/tools"
|
PATH="$PATH:~/emsdk:~/emsdk/node/12.9.1_64bit/bin:~/emsdk/fastcomp/emscripten" #:~/emsdk/fastcomp/emscripten/tools"
|
||||||
fi
|
fi
|
||||||
export BROWSER='/usr/bin/w3m -T "text/html"'
|
export BROWSER='/usr/bin/w3m -T "text/html"'
|
||||||
export EDITOR=/usr/bin/vim
|
if which nvim > /dev/null 2>&1; then
|
||||||
|
export EDITOR=/usr/bin/nvim
|
||||||
|
else
|
||||||
|
export EDITOR=/usr/bin/vim
|
||||||
|
fi
|
||||||
|
# Disable `less` history file
|
||||||
|
export LESSHISTFILE='/dev/null'
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
# Prevent mime associations by wine
|
# Prevent mime associations by wine
|
||||||
export WINEPREFIX="$HOME/.wine"
|
export WINEPREFIX="$HOME/.wine"
|
||||||
|
|
Loading…
Reference in a new issue