PDA

View Full Version : Aliases not working



Smajjk
February 7th, 2013, 06:56 AM
I want to use some simple aliases like:

alias goto='cd /some/dir'

I add this to a file .bash_aliases in my home folder, which is the appropriate thing to do according to .bashrc. It's not working though :( Any suggestions?

Thanks

Smajjk
February 7th, 2013, 07:12 AM
I found the problem, just had forgotten that I am atm using Z shell... So I just had to add the alias to the .zshrc file. But I created an .aliases file and have both .bashrc and .zshrc point to this instead, for convenience :)