put below code into your ~/.zshrc
|| ~/.bashrc
|| /etc/profile
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
then save below file alias.sh
into /etc/profile.d/
and reload this config use source ~/.zshrc
or source ~/.bashrc
or source /etc/profile