Skip to content

Instantly share code, notes, and snippets.

@csturtevant
Last active September 13, 2023 22:28
Show Gist options
  • Save csturtevant/6337e1b3d0231a3855f099a2af7b7d9d to your computer and use it in GitHub Desktop.
Save csturtevant/6337e1b3d0231a3855f099a2af7b7d9d to your computer and use it in GitHub Desktop.
uninstall prezto from home directory
rm -rf ~/.zprezto ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zprofile ~/.zshenv
@argestes
Copy link

This will also modify zshrc therefore will effect your oh my zsh configuration if you have any.

@AlexRuizE
Copy link

Agreed, a safer way would be: rm -rf ~/.zprezto ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zprofile ~/.zshenv. No need to remove the entire .zshrc as it may contain usefulconfigurations independent of zpresto. Leaving comment here because this is still the second google hit for how to remove .zpresto. Cheers.

@csturtevant
Copy link
Author

Thanks for the helpful comments.

~/.zshrc removed from script.

@immi-sipgate
Copy link

why doest this command delete the ~/.zshenv file?

When using this command and then restarting the terminal i get:
/Users/***/.zshrc:1: command not found: rbenv

I guess there where other configurations in the zsh regarding rbenv which are lost now too?

any help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment