From 5b575965101ec96bade27280819353c0e67a9b86 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 20 Feb 2022 19:32:49 +0000 Subject: [PATCH] Use vim as EDITOR if available --- roles/home-cli/files/bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index cdad382..95f139e 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -73,6 +73,11 @@ then export GPG_TTY=$(tty) fi +if test -x /usr/bin/vim +then + export EDITOR="/usr/bin/vim -f" +fi + shopt -s histappend bind '"\e[1;5C": forward-word' bind '"\e[1;5D": backward-word'