zsh-users
 help / color / mirror / code / Atom feed
From: Jim <linux.tech.guy@gmail.com>
To: Gunnar Erik Gervin <erikggervin@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: From zsh back to bash
Date: Mon, 1 Jul 2024 16:48:05 -0500	[thread overview]
Message-ID: <CA+rB6GJcvw3ZMWm=J=mRcpa0RN+0CifnwbiCw3G6zu8p76moTA@mail.gmail.com> (raw)
In-Reply-To: <CAJTudjgijxcVM3KjuXr9bfTjjZPN1mKnnEG2QzYf33zWHkvGyQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

Hi Gunnar,

On Mon, Jul 1, 2024 at 2:40 PM Gunnar Erik Gervin <erikggervin@gmail.com>
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

[-- Attachment #2: Type: text/html, Size: 1284 bytes --]

  reply	other threads:[~2024-07-01 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-01 19:39 Gunnar Erik Gervin
2024-07-01 21:48 ` Jim [this message]
2024-07-01 21:50 ` Lawrence Velázquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+rB6GJcvw3ZMWm=J=mRcpa0RN+0CifnwbiCw3G6zu8p76moTA@mail.gmail.com' \
    --to=linux.tech.guy@gmail.com \
    --cc=erikggervin@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).