Terminal starts with 'sleep' command?

My machine has MacOS Big Sur 11.4 with silicon chips. I'm attaching two screenshots here. Whenever I start a new terminal, it appears like this one. this one. Termination of terminal The terminal shows the running process which is 'zsh > sleep'. Second screenshot shows when I'm closing the terminal window even without running any process manually. Where have I gone wrong? And how should I terminate this process permanently (atleast for the time being for initiation of terminal).

Please help!!. I'm at my wit's end.


Based on this limited information, my guess would be that you have executing sleep somewhere from your zsh config.

To view your zsh config, open ~/.zshrc:

open ~/.zshrc

If you find sleep in there, you can try removing it and reloading your zsh config with:

source ~/.zshrc