summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-10-29 15:43:52 +0100
committerPatrick Simianer <pks@pks.rocks>2018-10-29 15:43:52 +0100
commit1e87a04773baf9ed27dfa460119de9db69a523db (patch)
tree3b96375d140bbfd5c1071673d2cca5a67e64c7fa /zsh
parent2167b4a8d3658c3546c6bf36aadb901c296d8772 (diff)
zsh: fix
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'