summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 8851b40..776bf8d 100644
--- a/bashrc
+++ b/bashrc
@@ -194,7 +194,11 @@ export HISTSIZE=${HISTFILESIZE}
export HISTCONTROL=ignoredups:ignorespace
shopt -s histappend
export LESSCHARSET=utf-8
-export EDITOR="gvim -f"
+if [[ -n $DISPLAY ]]; then
+ export EDITOR="gvim -f"
+else
+ export EDITOR="vim"
+fi
shopt -s cdspell
shopt -s checkwinsize
shopt -s no_empty_cmd_completion