​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


/Users/Sandeep/.zshrc:4: no such file or directory: username

Terminal is throwing me an error every time I open it. I recently had an issue with losing system files while discarding git commit in VS code and having all kinds of issues.

Here's what my terminal and zshrc profile looks like -

Terminal -


Zshrc -

MacBook Pro (2021)

Posted on Aug 10, 2023 1:25 AM

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

/Users/Sandeep/.zshrc:4: no such file or directory: username

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.