summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-02-05 00:04:15 -0500
committerJune McEnroe <programble@gmail.com>2016-02-05 00:04:15 -0500
commit48fec21e4b75a4419efa4a5a6b82261c2fc51227 (patch)
tree951600b9b5145d26d6000c1607fb40d391a9c23a /.zshrc
parentMore iTerm configuration tweaks (diff)
downloadsrc-48fec21e4b75a4419efa4a5a6b82261c2fc51227.tar.gz
src-48fec21e4b75a4419efa4a5a6b82261c2fc51227.zip
Add nvim configuration
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index c0f1fd19..3106dc79 100644
--- a/.zshrc
+++ b/.zshrc
@@ -11,7 +11,8 @@ bindkey -v
 KEYTIMEOUT=1
 
 PATH=$PATH:~/.bin
-export EDITOR=vim
+export EDITOR=vim GIT_EDITOR=vim
+type nvim > /dev/null && EDITOR=nvim GIT_EDITOR=nvim && alias vim=nvim
 
 [[ "$OSTYPE" =~ 'darwin' ]] && alias osx=true || alias osx=false
 osx && export CLICOLOR=1 || alias ls='ls --color' grep='grep --color'