Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: From zsh back to bash



Hi Gunnar,

On Mon, Jul 1, 2024 at 2:40 PM Gunnar Erik Gervin <erikggervin@xxxxxxxxx> wrote:
How do I find out which shell options I have in a zsh terminal?
How do I set the standard shell (in an iMac from 2017) to be bash instead of zsh ?
"Why?" you maybe ask. To get the terminal do bash commands (=all) is the answer!
BR,
Gunnar Gervin, Java student

To hopefully answer your first question, the following should output all
the options and whether they are  set or not.

   L=${#${(Ok@)options//?/X}[1]}  # get max option char length for output alignment
   for opt (${(ok)options}) print ${(r.L.. .)Ele} ${options[$opt]}

Not a Mac user so I will let someone else respond to the other questions.

Regards,

Jim Murphy


Messages sorted by: Reverse Date, Date, Thread, Author