# Open site shell opens and quits in Mac OS Big Sur

**URL:** <https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860>\
**Category:** Support\
**Tags:** mac-big-sur, site-shell\
**Created:** [September 23, 2021, 9:43am UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860 "2021-09-23T09:43:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djave](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/djave/32/5191_2.png) [@djave](https://community.localwp.com/u/djave)\
**Post date:** [September 23, 2021, 9:43am UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860/1 "2021-09-23T09:43:17Z")

</div>

# Bug Summary

Right clicking the site name and selecting open site shell opens a terminal window. The following output occurs:

```
**$** /Users/djave_co/Library/Application\ Support/Local/ssh-entry/iLyU0kruE.sh ; exit;
Setting Local environment variables...
----
WP-CLI: WP-CLI 2.5.0
Composer: 2.1.5 2021-07-23
PHP: 7.3.5
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /bin/bash ...
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.

```

And it logs out / exits.

# Steps to reproduce

Right click site name a click open site shell.

# Environment Info

iMac 21.5 inch 2017  
macOS Big Sur 11.5.2  
Local 6.1.2+5473

# Supporting info

Please provide your Local Log.

No errors in log.

Include any screenshots or video recordings of the issue to help others reproduce.

[![](https://img.youtube.com/vi/JhE0qAbUoms/maxresdefault.jpg "LocalOpenSiteSSH") ](https://www.youtube.com/watch?v=JhE0qAbUoms)

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [September 23, 2021, 4:50pm UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860/2 "2021-09-23T16:50:51Z")

</div>

The new default shell in macOS is zsh. It is no longer bash. That seems like a system request and not a Local thing.

FWIW, I’ve been using zsh and I really don’t notice a difference except Oh my ZSH! Is awesome.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 23, 2021, 5:40pm UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860/3 "2021-09-23T17:40:41Z")

</div>

Hey @djave Thanks for writing in about this – I’ve moved the topic to the Support category for the moment until we can get more reliable recreation steps.

I sometimes encounter this if there’s any sort of interactive prompt or otherwise non-zero exit code during the terminal start-up.

Typically this happens if I try and open a site-shell and oh-my-zsh prompts me for an update. The fix for me is to open a completely blank terminal and run the update (or tell Oh-my-zsh to stop nagging me) which then allows the shell to open cleanly.

As a test, I changed my shell back to bash to see if I could open a terminal with it and it appears to work:

 ![Image 2021-09-23 at 10.40.20 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/46a7de9745752a5cffd2e51eeb8445935e9eb404.jpeg)

@djave – I slowed the video down to `.25` speed and watched the title bar. It looks like there’s a number of things running (many of them make sense, because it’s setting up the environment) but a few might be causing issues.

As a test, can you open a new, plain terminal (ie, don’t use Local’s “Open site shell”) and let us know a little more info about the exit code for the last command? You can use this to print it out, and anything other than zero indicates that there was some sort of error running the last code:

```auto
echo $?

```

---

<div class="post-metadata">

**Author:** ![djave](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/djave/32/5191_2.png) [@djave](https://community.localwp.com/u/djave)\
**Post date:** [October 14, 2021, 5:38pm UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860/4 "2021-10-14T17:38:34Z")

</div>

Thanks guys, I updated zsh and everything started working.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 16, 2021, 5:39am UTC](https://community.localwp.com/t/open-site-shell-opens-and-quits-in-mac-os-big-sur/27860/5 "2021-10-16T05:39:12Z")

</div>

Closed on October 16, 2021, 5:39am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
