aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Williams <tgwil@tgwil.net>2024-10-13 06:30:46 -0400
committerTristan Williams <tgwil@tgwil.net>2024-10-13 06:30:46 -0400
commit48a0c4873bb99000722eb7d51663fb577754c83e (patch)
treed94ae9c72f291fb3180e06cd40fec76cd104dc97
parent.bashrc: Fix history size (diff)
downloaddotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.tar.gz
dotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.tar.bz2
dotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.zip
.bashrc: Set EDITOR and VISUAL
-rw-r--r--home/.bashrc10
1 files changed, 10 insertions, 0 deletions
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
60# History size 60# History size
61HISTSIZE=100000 #100K 61HISTSIZE=100000 #100K
62HISTFILESIZE=1000000 #1M 62HISTFILESIZE=1000000 #1M
63
64
65########################################################################
66## Editor
67########################################################################
68export EDITOR="nano"
69if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_EDITOR=$EDITOR; fi
70
71export VISUAL="emacsclient -c"
72if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_VISUAL=$VISUAL; fi