Skip to content

Instantly share code, notes, and snippets.

@dubistdu
Last active October 4, 2018 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dubistdu/c77c9a70fb5e27fb1031df627cea2340 to your computer and use it in GitHub Desktop.
Save dubistdu/c77c9a70fb5e27fb1031df627cea2340 to your computer and use it in GitHub Desktop.
Troubleshoot - Terminal Gone!

Issue I had was terminal flashing and disappearing after removing Zsh while Terminal app was still running

Solution
  • Before removing shell, I should have switched to bash using chsh -s /bin/bashsince I can't uninstall zsh as I was using zsh!

    • It should have been chsh -s /bin/bash
    • to swich back to bash temporarily
    • then uninstall / reinstall zsh
    • then chsh -s /usr/local/bin/zsh to switch back to zsh
  • Since I didn't switch to bash first....

    • run terminal app
    • go to Preferences (top left menu)
    • select Shells open with Command (complete path)
    • change path to /bin/bash
    • open terminal
    • run chsh -s /bin/bash
    • install zsh brew install zsh (check the correct command)
    • then chsh -s /usr/local/bin/zsh to switch back to zsh
    • Check if terminal is back to zsh echo ${SHELL}
    • if it returns something like this /usr/local/bin/zsh, it's all good.
    • go to Terminal reference and check shell opens with to Default Then..... see if all is working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment