diff options
-rw-r--r-- | bashrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |