zsh-users
 help / color / mirror / code / Atom feed
* From zsh back to bash
@ 2024-07-01 19:39 Gunnar Erik Gervin
  2024-07-01 21:48 ` Jim
  2024-07-01 21:50 ` Lawrence Velázquez
  0 siblings, 2 replies; 3+ messages in thread
From: Gunnar Erik Gervin @ 2024-07-01 19:39 UTC (permalink / raw)
  To: zsh-users

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

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: From zsh back to bash
  2024-07-01 19:39 From zsh back to bash Gunnar Erik Gervin
@ 2024-07-01 21:48 ` Jim
  2024-07-01 21:50 ` Lawrence Velázquez
  1 sibling, 0 replies; 3+ messages in thread
From: Jim @ 2024-07-01 21:48 UTC (permalink / raw)
  To: Gunnar Erik Gervin; +Cc: zsh-users

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: From zsh back to bash
  2024-07-01 19:39 From zsh back to bash Gunnar Erik Gervin
  2024-07-01 21:48 ` Jim
@ 2024-07-01 21:50 ` Lawrence Velázquez
  1 sibling, 0 replies; 3+ messages in thread
From: Lawrence Velázquez @ 2024-07-01 21:50 UTC (permalink / raw)
  To: Gunnar Erik Gervin; +Cc: zsh-users

On Mon, Jul 1, 2024, at 3:39 PM, Gunnar Erik Gervin wrote:
> How do I find out which shell options I have in a zsh terminal?

Assuming you mean "which shells you have available", this command
lists the shells provided by macOS (assuming /etc/shells hasn't
been modified):

	% cat /etc/shells

Presumably you know about any shells that you've installed yourself.

> How do I set the standard shell (in an iMac from 2017) to be bash 
> instead of zsh ?

Assuming you mean "default interactive shell", follow these
instructions but select bash instead of zsh:

https://support.apple.com/en-us/102360

Note that macOS's /bin/bash is very old.  If you want to use another
bash, you may have to adjust the instructions (e.g., run "sudo chsh
-s /path/to/newer/bash" instead of the unprivileged "chsh -s
/bin/bash").

How to obtain another bash is left as an exercise for the reader.

-- 
vq


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-01 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-01 19:39 From zsh back to bash Gunnar Erik Gervin
2024-07-01 21:48 ` Jim
2024-07-01 21:50 ` Lawrence Velázquez

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).