aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.bashrc6
1 files changed, 6 insertions, 0 deletions
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