MacOS – terminal custom commands source every time

aliascommand lineitermmacos

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:
enter image description here

My iterm2 profile:
enter image description here

UPDATE:
For me this solution actually worked

Best Answer

So after all struggle the only solution which worked for me is by executing source ~/.bashrc every time when I open my terminal.