-bash: dirname: command not found
I am finding the below line every time I open my terminal
-bash: dirname: command not found.
My current path is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/Users/jiayi/opt/anaconda3/bin:/bin:/usr/local/mysql/bin:.
How can I resolve this problem? I already tried export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" in order to change the path to default, but every time I open a new terminal, the path would go back to the messy one.
MacBook