'/.zprofile:10: parse error near `$(/opt/homebrew/bin/...' keep on getting error while opening terminal on Mac

I tried to install JAVA_HOME path while adjusting (vi ~/.zshrc). Somehow, I messed up with existing file. I don't know how to fix it. I a bit newbie, so elaborated answered are welcome. Not sure how it fix it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source