diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 06:30:46 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 06:30:46 -0400 |
commit | 48a0c4873bb99000722eb7d51663fb577754c83e (patch) | |
tree | d94ae9c72f291fb3180e06cd40fec76cd104dc97 /home | |
parent | .bashrc: Fix history size (diff) | |
download | dotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.tar.gz dotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.tar.bz2 dotfiles.core-48a0c4873bb99000722eb7d51663fb577754c83e.zip |
.bashrc: Set EDITOR and VISUAL
Diffstat (limited to 'home')
-rw-r--r-- | home/.bashrc | 10 |
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 |
61 | HISTSIZE=100000 #100K | 61 | HISTSIZE=100000 #100K |
62 | HISTFILESIZE=1000000 #1M | 62 | HISTFILESIZE=1000000 #1M |
63 | |||
64 | |||
65 | ######################################################################## | ||
66 | ## Editor | ||
67 | ######################################################################## | ||
68 | export EDITOR="nano" | ||
69 | if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_EDITOR=$EDITOR; fi | ||
70 | |||
71 | export VISUAL="emacsclient -c" | ||
72 | if id -nG $USER | grep -qw "sudo" -qw; then export SUDO_VISUAL=$VISUAL; fi | ||