diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-12 00:41:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-12 00:41:57 +0300 |
commit | 78eacea96076ff87ef07882d12db2036df6fdd84 (patch) | |
tree | 11f9e1db75f565e5013a8b5e1340ba5bdf213b50 | |
parent | add str_ends_with (diff) | |
download | linux-home-78eacea96076ff87ef07882d12db2036df6fdd84.tar.gz linux-home-78eacea96076ff87ef07882d12db2036df6fdd84.zip |
define $EDITOR
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bashrc | 6 |
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 |