Live data from Hacker News

Zsh is your friend.

mikegrouchy.com

91–100 of 117 posts

Re: Zsh is your friend.

#91
post #90

This article inspired me to give zsh a spin. The pre configured setup of oh-my-zsh is a nice starting point. But am really missing the Bash "help" command, and the combined (easily searchable) man page. Thus far I have not been able to figure out which feature or config option to disable to stop this annoyance: $ grep vim zsh: correct 'vim' to '.vim' [nyae]? Please don't "help me", i typed exactly what I wanted.

unsetopt correct_all

in your .zshrc

also run-help , I believe is the zsh equivalent to the Bash help builtin.

Re: Zsh is your friend.

#92
post #90

This article inspired me to give zsh a spin. The pre configured setup of oh-my-zsh is a nice starting point. But am really missing the Bash "help" command, and the combined (easily searchable) man page. Thus far I have not been able to figure out which feature or config option to disable to stop this annoyance: $ grep vim zsh: correct 'vim' to '.vim' [nyae]? Please don't "help me", i typed exactly what I wanted.

Care to post your .zshrc?

Edit: I have setopt correctcall and I do not get this behaviour.

On an unrelated not, this is a classic example of complaining about why a product doesn't work and having users jump at the chance to fix your issue to prove it's worth.

But how to monitize this... :)

Re: Zsh is your friend.

#94

I wish the author had put the settings used to get those effects. Unless they are default? It's probably just formatting?

some of them are the built in oh-my-zsh things, but I added some of the settings in the posts comments for people who asked.

Is there something particular you are looking for?

Re: Zsh is your friend.

#95
post #90

This article inspired me to give zsh a spin. The pre configured setup of oh-my-zsh is a nice starting point. But am really missing the Bash "help" command, and the combined (easily searchable) man page. Thus far I have not been able to figure out which feature or config option to disable to stop this annoyance: $ grep vim zsh: correct 'vim' to '.vim' [nyae]? Please don't "help me", i typed exactly what I wanted.

Care to post your .zshrc? Edit: I have setopt correctcall and I do not get this behaviour. On an unrelated not, this is a classic example of complaining about why a product doesn't work and having users jump at the chance to fix your issue to prove it's worth. But how to monitize this... :)

lol, guilty.... where do I send my micro-payment ;o)

Re: Zsh is your friend.

#96
post #90

This article inspired me to give zsh a spin. The pre configured setup of oh-my-zsh is a nice starting point. But am really missing the Bash "help" command, and the combined (easily searchable) man page. Thus far I have not been able to figure out which feature or config option to disable to stop this annoyance: $ grep vim zsh: correct 'vim' to '.vim' [nyae]? Please don't "help me", i typed exactly what I wanted.

unsetopt correct_all in your .zshrc also run-help , I believe is the zsh equivalent to the Bash help builtin.

Not sure what is lost with "unsetopt correct_all", but it fixes this annoyance.

"run-help" doesn't seem to do the trick. As an example, in Bash, "help for" will describe the for loop construct. "run-help" seems to just be an alias for "man" and on my system calls up the Tcl for man page.

Thanks for the article and your response here.

Re: Zsh is your friend.

#97

While from what I have read about it zsh is a nice shell, it doesn't deal with what I find to be the biggest problem with bash, sh, and just about every shell that isn't fish: the horribly ugly and inconsistent syntax. And I think it's rather sad that on what is supposedly the most advanced shell of our generation, you still have to deal with a thousand ridiculous redirections and quoting styles, different delimiter…

I have been using fish for several years now. It's community is a fraction of zsh, bash, and others, and I've tried to go back to them, mostly out of misplaced "everyone else is doing it" mindset Fish is a great shell. It's a modern shell, that uses colors, UTF, and processing power that didn't exist when the others were designed. I feel the best thing about it is the sane defaults and large number of prebuilt comple…

I tried out fish a month back, but got stuck on 2 things, one which i use frequently.

1. I use the Alt-. (dot) to get last argument of previous command.

2. Getting output of previous command such as : `!!` (backtick !! backtick) for which I get a "no such file".

I asked on reddit, but got no replies. Thx.

Re: Zsh is your friend.

#99

Earlier quoted context omitted.

Not really, you're not seeing bash have many more features because its simpler on the inside at the cost of sometimes breaking. Rather, it seems an example of " the most dangerous enemy of a better solution is an existing codebase that is just good enough"

Not sure that is the real reason. Zsh was not free software in the Linux formative years. It lost its chance, and mindshare, like so much commercial Unix

Zsh was never part of a commercial Unix, so I suspect you are thinking of Ksh. As far as I can tell, Zsh has always been free software: the earliest version I could find used the GPL, but it now uses something more MIT-like.

Bash is probably more widely used because it was available earlier than Zsh, and because it was the "official" shell of the GNU project (better marketing).

Re: Zsh is your friend.

#100
post #70
post #48

Earlier quoted context omitted.

im pretty sure bash does shared history if you desire it, the configuration is just not as directly obvious. I prefer a long histfile (unlimited really, i. think i have it set to a million lines, but im at about 70 000. i even keep it backed up regularly because its fairly easy to trash the histfile if you are opening subshells and do the wrongthing. timestamped, too, which i find really handy. that said, i do use an…

Sorry for being off-topic, but do you know how the ZSH history file gets trashed? It's happened so often to me that I wrote a script to reconstruct my history file by combining the last handful of backups. I still haven't figured out how the history file gets trashed though :-( Edit: Since I'm in ZSH company, here's the script: https://gist.github.com/1713414

guessing, but could you be invoking zsh in such a way occasionally that it is not reading your .zshrc? sudo or su come to mind..... this is what got me in bash a few times - exiting a shell that had just the wrong ssettings so it ioverwrote my history.
Post reply on HN