I used to be able to cd into aliases with my Mac. Today I was messing around with ~/.bashrc and ~/.bash_profile to make PostgreSQL work. After I restarted my computer it stopped cd'ing to aliases and after some research I figured I was not supposed to be able to do that from the beginning.
So I do not know how I was able to cd into aliases before or how I broke it (maybe a system update became valid after restart, I wasn't restarting for a while). I have only found the following answer on couple places How to go to alias from terminal?.
I am looking for an explanation to what happened and a simple way of fixing it rather than modifying cd function itself. I do not prefer creating a symbolic link because it would be broken when I make a change in the actual file & I have many aliases to replace so it seems like a redundant work.
Note: Im still not able to cd into aliases when I undo the changes I made in ~/.bashrc and ~/.bash_profile, so this seems to be caused by something else or my changes triggered something once and it was enough for a permanent change.