Any ideas on how to reset my zsh terminal to default?
Solution 1:
- Open the Finder. (Click the blue smiley face in the dock.)
- Go to your home folder. (In the sidebar on the left, under Favorites, press the item that has a house icon and your username.)
- If necessary, press ⌘⇧. (Command-Shift-Dot) to show hidden files. (Hidden files are shown as grayed out.) There might be a delay in this taking effect, so wait a moment after you press this shortcut.
- Find your
.zshrc
file. It's one of the grayed out ones.
- To reset your
zsh
settings to default, just delete your .zshrc
file by clicking it once and then pressing ⌘⌫ (Cmd-Backspace). (If you see any other .z*
files, delete those, too.) This will put it in the trash, so you can always restore it later, if necessary.
- To try to fix the problem without losing your config, edit your
.zshrc
file with TextEdit. Make sure you save it as plain text. To toggle between plain text and rich text, press ⌘⇧T. (If you see a formatting toolbar, then you're in rich text mode.)