From a46787c6843d4e04dad50b1f1b425ce48403e23a Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 6 Nov 2022 13:39:34 +0000 Subject: [PATCH] shrc: simplify per-host customization Use ~/.shrc.local instead of ~/.shrc.$(hostname) --- dotfiles/shrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dotfiles/shrc b/dotfiles/shrc index 4e86f4a..f5d2d53 100644 --- a/dotfiles/shrc +++ b/dotfiles/shrc @@ -77,11 +77,8 @@ if command -v calendar >/dev/null && [ -f ~/.calendar/calendar ]; then calendar fi -_host=$(hostname 2>/dev/null) -_host=${_host%%.*} -if [ -n "$_host" ] && [ -f ~/.shrc."$_host" ]; then - . ~/.shrc."$_host" +if [ -s ~/.shrc.local ]; then + . ~/.shrc.local fi -unset _host set -o emacs