After following this comment I added all my startup/alias commands to ~/.bashrc
file and in ~/.bash_profile
I added source ~/.bashrc
But still my aliases are not working. I have to manually source ~/.bash_profile
overtime (with source ~/.bash_profile
).
My .bashrc file:
alias km='cd /Users/apple/Desktop/km'
and my .bash_profile file
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
source ~/.bashrc
In my user directory I only have following files:
UPDATE: For me this solution actually worked