zsh-users
 help / Atom feed
* Zsh as default in Mac OS 15 / zsh "primer"?
@ 2019-06-03 21:07 ` TJ Luoma
  2019-06-04  2:18   ` dana
                     ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: TJ Luoma @ 2019-06-03 21:07 UTC (permalink / raw)
  To: zsh-users

I've been told that zsh is the default shell in the new version of
macOS "Catalina".

Someone just asked me if I had a quick primer on why zsh is "better"
than other shells.

I've never really used others so I don't really know much about it, so
I wasn't sure what to suggest other than Googling,

Tj

--
TJ Luoma
TJ @ MacStories
Personal Website: luo.ma (aka RhymesWithDiploma.com)
Twitter: @tjluoma

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

* Re: Zsh as default in Mac OS 15 / zsh "primer"?
  2019-06-03 21:07 ` Zsh as default in Mac OS 15 / zsh "primer"? TJ Luoma
@ 2019-06-04  2:18   ` dana
  2019-06-04  9:31   ` Sebastian Gniazdowski
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: dana @ 2019-06-04  2:18 UTC (permalink / raw)
  To: TJ Luoma; +Cc: zsh-users

On 3 Jun 2019, at 16:07, TJ Luoma <luomat@gmail.com> wrote:
> I've been told that zsh is the default shell in the new version of
> macOS "Catalina".

For reference: https://support.apple.com/en-us/HT208050

On 3 Jun 2019, at 16:07, TJ Luoma <luomat@gmail.com> wrote:
> Someone just asked me if I had a quick primer on why zsh is "better"
> than other shells.

Pretty broad and subjective topic, but off the top of my head i would suggest
the following major benefits:

* More advanced line-editing and tab-completion; completion scripts are
  updated regularly and shipped with the shell itself

* Saner and more powerful parameter expansion (white-space handling, nesting,
  splitting, filtering, quoting, &c.)

* More functionality built directly into the shell, which can make many
  scripting tasks faster to perform (likely at the expense of some start-up
  and memory over-head), as well as more portable across different systems (as
  long as you have zsh, obviously)

The FAQ covers much of this: http://zsh.sourceforge.net/FAQ/

There are also a guide (http://zsh.sourceforge.net/Guide/zshguide.html) and a
book, but none of them were really designed to 'pitch' zsh to users of other
shells AFAIK

dana


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

* Re: Zsh as default in Mac OS 15 / zsh "primer"?
  2019-06-03 21:07 ` Zsh as default in Mac OS 15 / zsh "primer"? TJ Luoma
  2019-06-04  2:18   ` dana
@ 2019-06-04  9:31   ` Sebastian Gniazdowski
  2019-06-04 10:05   ` Peter Stephenson
  2019-06-04 14:22   ` Aaron Schrab
  3 siblings, 0 replies; 6+ messages in thread
From: Sebastian Gniazdowski @ 2019-06-04  9:31 UTC (permalink / raw)
  To: TJ Luoma; +Cc: Zsh Users

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

Zsh language and its environment are more advanced and this allowed me to
create an advanced plugin manager for it, zplugin (
https://github.com/zdharma/zplugin). When I was thinking about creating
similar plugin manager for Bash, it seemed problematic and some features
(like turbo mode) would have to be absent. In effect, Zsh gains one more
advantage: plugin manager and the plugins microcosm.

pon., 3 cze 2019, 23:11 użytkownik TJ Luoma <luomat@gmail.com> napisał:

> I've been told that zsh is the default shell in the new version of
> macOS "Catalina".
>
> Someone just asked me if I had a quick primer on why zsh is "better"
> than other shells.
>
> I've never really used others so I don't really know much about it, so
> I wasn't sure what to suggest other than Googling,
>
> Tj
>
> --
> TJ Luoma
> TJ @ MacStories
> Personal Website: luo.ma (aka RhymesWithDiploma.com)
> Twitter: @tjluoma
>

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

* Re: Zsh as default in Mac OS 15 / zsh "primer"?
  2019-06-03 21:07 ` Zsh as default in Mac OS 15 / zsh "primer"? TJ Luoma
  2019-06-04  2:18   ` dana
  2019-06-04  9:31   ` Sebastian Gniazdowski
@ 2019-06-04 10:05   ` Peter Stephenson
  2019-06-04 13:30     ` TJ Luoma
  2019-06-04 14:22   ` Aaron Schrab
  3 siblings, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 2019-06-04 10:05 UTC (permalink / raw)
  To: zsh-users

On Mon, 2019-06-03 at 17:07 -0400, TJ Luoma wrote:
> I've been told that zsh is the default shell in the new version of
> macOS "Catalina".
> 
> Someone just asked me if I had a quick primer on why zsh is "better"
> than other shells.
> 
> I've never really used others so I don't really know much about it, so
> I wasn't sure what to suggest other than Googling,

The classic introduction to this is the intro.ms file in the Doc directory of
the source.  That goes right back to the earlier days, so doesn't mention
programmable completion, but is a pretty good introduction to why zsh
was different in the first place.

The format it's in shows it's age.  You might be best simply to do something
like

nroff -ms intro.ms| colcrt | uniq >intro.txt

pws

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

* Re: Zsh as default in Mac OS 15 / zsh "primer"?
  2019-06-04 10:05   ` Peter Stephenson
@ 2019-06-04 13:30     ` TJ Luoma
  0 siblings, 0 replies; 6+ messages in thread
From: TJ Luoma @ 2019-06-04 13:30 UTC (permalink / raw)
  To: zsh-users

It seems like a resource that we could use, but don't really have. I
wish I knew enough to write one myself. As I said to my friend who
told me about the change in Mac OS, I got started with zsh back around
1991 but never really used any other shell, so I don't really know
what it does better than others or that others don't do, because it's
what I've always used.

I'll see if a web search turns up anything useful. If I find something
worth sharing, I'll report back to the list.

TjL


--
TJ Luoma
TJ @ MacStories
Personal Website: luo.ma (aka RhymesWithDiploma.com)
Twitter: @tjluoma

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

* Re: Zsh as default in Mac OS 15 / zsh "primer"?
  2019-06-03 21:07 ` Zsh as default in Mac OS 15 / zsh "primer"? TJ Luoma
                     ` (2 preceding siblings ...)
  2019-06-04 10:05   ` Peter Stephenson
@ 2019-06-04 14:22   ` Aaron Schrab
  3 siblings, 0 replies; 6+ messages in thread
From: Aaron Schrab @ 2019-06-04 14:22 UTC (permalink / raw)
  To: TJ Luoma; +Cc: zsh-users

At 17:07 -0400 03 Jun 2019, TJ Luoma <luomat@gmail.com> wrote:
>I've been told that zsh is the default shell in the new version of
>macOS "Catalina".

Interesting that Apple's going back to that. zsh was also the default 
shell in the public beta of OS X that they made available before the 
initial release back in 2001.

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

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20190603211054epcas3p13d2d7fc82fb0488bed593ba58fbdf763@epcas3p1.samsung.com>
2019-06-03 21:07 ` Zsh as default in Mac OS 15 / zsh "primer"? TJ Luoma
2019-06-04  2:18   ` dana
2019-06-04  9:31   ` Sebastian Gniazdowski
2019-06-04 10:05   ` Peter Stephenson
2019-06-04 13:30     ` TJ Luoma
2019-06-04 14:22   ` Aaron Schrab

zsh-users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox