I installed Pyenv using brew and set path using
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
Now I deleted it with brew, and I got .zshrc:1: command not found: pyenv every time I opened my terminal. I understand that I need to simply remove the pyenv init invocations from my shell startup configuration. But can someone give me the right command line to do so? Thanks
I am on MacOS by the way
Assuming you have Vim installed, you can use vim ~/.zshrc to open the file and then edit it out.
How to delete Pyenv