First you need to understand how rvm overwrites your default cd system command.
Here the answer explains it well.
In short, rvm defines such a function in .rvm / script / cd
cd(){ builtin cd $*
And you can find this line if you look how this cd () is defined.
__rvm_project_rvmrc && __rvm_after_cd || true
__rvm_project_rvmrc is a function to check if .rvmrc exists in the directory you enter.
This way, hook scripts will only be received if .rvmrc exists in the root of your project.
So create your .rvmrc and try cd again. Good luck
> /path/to/app/root/.rvmrc cd /path/to/app/root
My rvm version:
rvm -v rvm 1.23.14 (stable) by Wayne E. Seguin < wayneeseguin@gmail.com >, Michal Papis < mpapis@gmail.com > [https://rvm.io/]
source share