Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.84k stars 835 forks source link

Where settings are saved on MacOS and how to change from zsh to bash #713

Open fcostarodrigo opened 2 years ago

fcostarodrigo commented 2 years ago

In the other terminals I just put the path to bash /usr/local/bin/bash. I tried to do that in the custom start command but that didn't work. Then I tried a different command and now the program quits after opening it.

Where is the settings stored in MacOS for me to revert them and what would be the correct command to use bash instead of zsh?

NateEag commented 2 years ago

On my Big Sur machine, the settings appear to be stored in a sqlite database at ~/Library/Application\ Support/cool-retro-term/cool-retro-term/QML/OfflineStorage/Databases/27e743fe85b8912a46804fed99e8a9ab.sqlite.

Maybe try moving any .sqlite file in that directory and see if a new one gets created on app start?

NateEag commented 2 years ago

To set a custom shell, the standard method is to run sudo chsh -s <path/to/shell> from within your current shell.

I run a non-standard bash, but it looks like the default install on Big Sur is at /bin/bash.

So, I believe sudo chsh -s /bin/bash should get you running bash across the board in OS X terminals.

Note that at least on Big Sur, bash is seriously out of date. If you want a recent bash, you may want to install your own version, maybe with Homebrew or Nix.