I found that Leap and tumbleweed seem to have different configurations.
Tumbleweed also has a profile.d directory in the /usr/etc/ directory, which contains files for alias settings. This is why I can still use aliases even after deleting the information in the /etc/profile.d directory.