osx - Alias - command not found -


i trying create own aliases in terminal (mac os x yosemite 10.10.1).

i added lines:

alias apr='sudo apachectl restart' alias setvhost='sudo nano /etc/apache2/extra/httpd-vhosts.conf' alias setdns='sudo nano /etc/hosts' 

to files: (i know lines should in 1 of following files)

~/.profile ~/.bash_profile ~/.bashhrc  

but after restart aliases not working. after type apr zsh: command not found: apr

what doing wrong? file best set aliases?


edit/answer:

i using oh zsh! default shell zsh , setting of symlinks in ~/.zshrc

looks default shell zsh, not bash; zsh not read .bashrc etc. @ startup. change default shell bash , retry.


Comments