From 0b189022dd1e67d1a5c1165da0e65c100ad9fe40 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 10 Dec 2015 21:31:12 +0100 Subject: [PATCH] Export vim as default shell editor. --- dotfiles_root/bashrc | 4 ++++ dotfiles_user_server/bashrc | 4 ++++ dotfiles_user_thinkpad/bashrc | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/dotfiles_root/bashrc b/dotfiles_root/bashrc index 3f4f8a3..64ba97b 100644 --- a/dotfiles_root/bashrc +++ b/dotfiles_root/bashrc @@ -3,6 +3,10 @@ # Fancy colors for ls. alias ls="ls --color=auto" +# Use vim as default editor for anything. +export VISUAL=vim +export EDITOR=$VISUAL + # Red prompt with time. PS1="\[\e[1;31m\][\\t \\u@\\h \\w]$\[\e[m\] " PS2="\[\e[1;31m\]>\[\e[m\] " diff --git a/dotfiles_user_server/bashrc b/dotfiles_user_server/bashrc index 8037b1b..2409091 100644 --- a/dotfiles_user_server/bashrc +++ b/dotfiles_user_server/bashrc @@ -3,6 +3,10 @@ # Fancy colors for ls. alias ls="ls --color=auto" +# Use vim as default editor for anything. +export VISUAL=vim +export EDITOR=$VISUAL + # Wrapper for weechat to force local config file on it anew on each run. alias weechat="~/config/bin/weechat-wrapper.sh" diff --git a/dotfiles_user_thinkpad/bashrc b/dotfiles_user_thinkpad/bashrc index 06df74f..5cdcf22 100644 --- a/dotfiles_user_thinkpad/bashrc +++ b/dotfiles_user_thinkpad/bashrc @@ -3,6 +3,10 @@ # Fancy colors for ls. alias ls="ls --color=auto" +# Use vim as default editor for anything. +export VISUAL=vim +export EDITOR=$VISUAL + # Blue prompt with time. PS1="\[\e[1;32m\][\\t \\u@\\h \\w]$\[\e[m\] " PS2="\[\e[1;32m\]>\[\e[m\] " -- 2.30.2