shrc: allow per-host customization

This commit is contained in:
Lucas 2022-10-01 15:02:34 +00:00
parent 560732f908
commit e104192fa5
1 changed files with 7 additions and 0 deletions

View File

@ -77,4 +77,11 @@ 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"
fi
unset _host
set -o emacs