If you need your terminal to always open on a certain directory or to execute any command every time it starts.
open your terminal.
cd <directory> to /Users/<your user name>
sudo vi .profile
write commands to be executed every time you open your terminal.
I wrote: echo 'بسم الله الرحمن الرحيم'
I hope it helps.