summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc9
1 files 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'