This question already has an answer here:
I have multiple projects, say, in Python. In each project I have "scripts/main_script.sh". Is there any way to make "scripts/main_script.sh" execute automatically when I go to the base directory of a project?
Namely, when I do
cd /home/my_name/python_project123, the script
/home/my_name/python_project123/scripts/main_script.sh should execute automatically.