I installed zsh, but I realized I miss the basic/default terminal look. How can I get back to the default shell?
Asked
Active
Viewed 1.2e+01k times
18
-
1How did you install zsh ? `sudo apt-get purge zsh` – Panther Sep 21 '17 at 16:51
-
someone recommended me this shell, but didn't like it. Thanks – Stefan Sep 21 '17 at 17:09
-
Yes, you need to configure it for sure. I use these 2 files http://bodhizazen.com/Tutorials/zshrc and http://bodhizazen.com/Tutorials/envrc (save them as ~/.zshrc and ~/.envrc ) – Panther Sep 21 '17 at 17:11
1 Answers
35
You can remove it completely with the following command.
sudo apt-get --purge remove zsh
If zsh was your default shell (see How to check which shell am I using? and What is default shell for terminal?), Do Not forget to change it to any other shell before purging, e.g. to bash like this with root access.
chsh -s /bin/bash YOUR_USERNAME
Or below with your login user.
chsh -s /bin/bash
αғsнιη
- 35,092
- 41
- 129
- 192
-
7
-
Would add a comment to arshin's answer but I cant: sudo apt-get --purge remove zsh zsh-* Do not forget about removing `zsh-*`! if you changed folders like `/usr/share/zsh` then reinstalling zsh without reinstalling zsh-commons will end up with a broken installation! – Lucas Alonso Jan 21 '19 at 22:11
-
@ArnaudP Thank you from my heart, I've wasted lots of time and I couldn't know what was I missing, I thought of restarting the PC but I totally ignored this out of laziness, thank you – Ahmed I. Elsayed Sep 13 '20 at 19:19
-
If you like me purge zsh without set other default shell, you need to copy content from `.bashrc.save` to `.bashrc` with some editor – Jonatas Eduardo Dec 05 '20 at 20:50