shrc: simplify per-host customization
Use ~/.shrc.local instead of ~/.shrc.$(hostname)
This commit is contained in:
parent
98659829cb
commit
a46787c684
@ -77,11 +77,8 @@ if command -v calendar >/dev/null && [ -f ~/.calendar/calendar ]; then
|
|||||||
calendar
|
calendar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_host=$(hostname 2>/dev/null)
|
if [ -s ~/.shrc.local ]; then
|
||||||
_host=${_host%%.*}
|
. ~/.shrc.local
|
||||||
if [ -n "$_host" ] && [ -f ~/.shrc."$_host" ]; then
|
|
||||||
. ~/.shrc."$_host"
|
|
||||||
fi
|
fi
|
||||||
unset _host
|
|
||||||
|
|
||||||
set -o emacs
|
set -o emacs
|
||||||
|
Loading…
Reference in New Issue
Block a user