diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-08-31 12:46:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-08-31 12:46:50 -0300 |
commit | cb924c4a7a85b2cec80abb759724efb104f23a21 (patch) | |
tree | a0fa9411919e97d0e969e7e577f730bf365f5805 | |
parent | ecfa87f82f2a9fbc40f84d64cb8fda4038eced48 (diff) | |
download | profile-cb924c4a7a85b2cec80abb759724efb104f23a21.tar.gz profile-cb924c4a7a85b2cec80abb759724efb104f23a21.tar.bz2 |
On vim -X
-rw-r--r-- | profile.dot.link | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/profile.dot.link b/profile.dot.link index 4beea3c..81f524d 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -44,8 +44,13 @@ if [ ! -z "$BASH" ]; then } fi -# Editor variables, avoiding "Avoiding protocol specified" error -export EDITOR="vim -X" +# Default editor +if [ ! -z "$DISPLAY" ]; then + # Avoid "Avoiding protocol specified" error + export EDITOR="vim -X" +else + export EDITOR="vim" +fi # Basic git configuration # See http://stackoverflow.com/questions/4192014/git-ps1-extremely-slow-in-kernel-tree |