From 1e87a04773baf9ed27dfa460119de9db69a523db Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 29 Oct 2018 15:43:52 +0100 Subject: zsh: fix --- zsh/.zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5f0bbe2..e394d3a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -162,7 +162,13 @@ if [[ $? == 0 ]]; then export R_LIBS_USER=$HOME/.R fi -export EDITOR='nvim -p' +if [[ -x $(which nvim) ]]; then + export EDITOR='nvim -p' + alias qmv='qmv -envim -fdo' +else + export EDITOR='vim -p' + alias qmv='qmv -evim -fdo' +fi export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 @@ -315,7 +321,6 @@ alias jpegtran='jpegtran -trim' alias pdfmerge='gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=/tmp/merged.pdf -dBATCH' alias thumb='convert -resize 200x200' -alias qmv='qmv -envim -fdo' alias radio='mocp ~/.moc/radio.m3u' alias muxn='tmux new -s' -- cgit v1.2.3