From 48a0c4873bb99000722eb7d51663fb577754c83e Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sun, 13 Oct 2024 06:30:46 -0400 Subject: .bashrc: Set EDITOR and VISUAL --- home/.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/.bashrc b/home/.bashrc index 85853e4..78ac39a 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -60,3 +60,13 @@ shopt -s histappend # History size HISTSIZE=100000 #100K HISTFILESIZE=1000000 #1M + + +######################################################################## +## Editor +######################################################################## +export EDITOR="nano" +if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_EDITOR=$EDITOR; fi + +export VISUAL="emacsclient -c" +if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_VISUAL=$VISUAL; fi -- cgit v1.2.3