Aliases work the same in all distros.You should have probably put your thread in an OS-specific forum... Arch, I guess from your signature.
My OS must not have 21 aliases because your script returns -9.
I obviously do not use a lot of additional aliases.
How come you don't have any default aliases? I've seen those (so far) in all known Debian-based distros - Mint, Ubuntu, even in Bodhi Linux which is modified Ubuntu. In Mint 18.3 aliases didn't work at all but the default ones were there and they worked.
That was just an example meaning that you need to put the longer code in a bash file. And yes, obviously, you need to specify the path. I thought that was implied which is why I didn't mention it.While you've soled it, for future reference, you need to specify custom path where you keep your scripts in your .bashrc
Also I want to apologize to OP for my comment above, this is Arch thread, so obviously it will work with Arch and not necessary with other distros.