When opening a new quick window ... if I type the ls
command, it causes the Terminal to disappear.
Start by Uninstalling OMZ (Oh-My-Zsh)
Why? This open source framework causes more problems than it solves. It doesn't really add anything but a flashy UI to a terminal screen. From the OMZ main page:
Oh My Zsh will not make you a 10x developer...but you may feel like one!
Emphasis Mine
There are tons of plugins and themes to supposedly make life easier and make looking at your Terminal screen more enjoyable. Unfortunately, all these plugins, modifications to your Zsh startup files (i.e. .zshrc
) can wreak havoc when trying to do things. A simple command like ls
shouldn't close a window.
Here are some more recent examples:
What's wrong with OMZ?
There's nothing wrong with it, if you know what you're doing. If you're new -- and we all were at one time -- and you install OMZ, you take away the learning curve that comes with the experience of doing things manually at first.
We all want a fancy, colorized prompt; I fault nobody for that. However, until you painstakingly learn how to create it, you won't understand what is happening when OMZ decides to flake out on you. The same holds true for the Git, Python, and the myriad of other plugins available. If you become dependent on OMZ, you'll find yourself in a difficult spot when things don't work or you find yourself on a system without this little helper.
This is not a "knock" on OMZ. But, keep in mind that OMZ is a community project where people contribute what works for them; it's massive ball of disparate pieces of yarn. What works for you may be a tiny fraction of the OMZ framework. It's best to start defining what you need specifically and making those customizations yourself. As you gain experience, you'll be able to install and troubleshoot OMZ on your own, but then you won't need OMZ.
Terminal.app
and runls
?