From 78eacea96076ff87ef07882d12db2036df6fdd84 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 12 Jan 2017 00:41:57 +0300 Subject: define $EDITOR --- %HOME%/.bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '%HOME%/.bashrc') diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 1eb29de..5c5308e 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -56,3 +56,9 @@ if is_cygwin; then alias mingcc='x86_64-w64-mingw32-gcc' alias ming++='x86_64-w64-mingw32-g++' fi + +if command -v vim > /dev/null 2>&1; then + export EDITOR=vim +elif command -v nano > /dev/null 2>&1; then + export EDITOR=nano +fi -- cgit v1.2.3