3 ms·
As others have mentioned, sourcing files based on hostname / uname might help: try-source () { if [ -f "$1" ]; then source "$1" fi
by mikewhy 8y ago
As others have mentioned, sourcing files based on hostname / uname might help:
try-source () {
if [ -f "$1" ]; then
source "$1"
fi
}
try-source "$HOME/.localrc.$(uname -s)"
try-source "$HOME/.localrc.$HOSTNAME"
try-source "$HOME/.localrc.$(uname -s).$HOSTNAME"