Live data from Hacker News

Use Zsh

fendrich.se

111–117 of 117 posts

Re: Use Zsh

#111

I'm not going to elaborate much because I feel I'll waste my and I have a plane to catch but I have yet to see a compelling argument to make me believe zsh is in any way superior to bash. All posts on the subject show that theirs authors have been using a shell they don't know and have replaced it by another shell plus configuration files made up by someone more clever. All posts are also bullet lists of features bas…

That's exactly how I feel about this as well. I can actually confirm that my bash config does each of these things other than some of the globbing features (* * for instance does work though).

edit: should be two asterix characters with no whitespace in between, but if I do this they're not displayed. Any advice on how to get that working?

Re: Use Zsh

#112
post #93
post #92

Earlier quoted context omitted.

How old is your Bash? GNU bash, version 4.2.37(2)-release produces $ ls R1004.jpg R1006.jpg R1008.jpg R1010.jpg R1012.jpg R1005.jpg R1007.jpg R1009.jpg R1011.jpg R1013.jpg $ ls R{1005..1009}* R1005.jpg R1006.jpg R1007.jpg R1008.jpg R1009.jpg

Read the post again. Your case works because you have exactly the right number of digits.

Missed that. Well, Bash does it intuitively however you like:

  $ echo {8..12}
  8 9 10 11 12
  $echo {08..12}
  08 09 10 11 12

Re: Use Zsh

#113
My concern with Zsh is that is just not that much better than Bash and that's the (valid) reason, why it's not getting widespread adoption.

It's like with Plan9 and Linux or new systems languages which try to make a better C. The technology _is_ better than the existing one, but not that much better that it's that relevant.

I think one of the main problems of current shells is that they try to be a CLI and an interpreter for a programming language (e.g. Bash script) at the same time, but the user uses mostly just one of these features for certain periods of time. At one point he wants to control the computer in a very efficient matter (system usage), so short keystroke sequences are convenient. At other times one wants to do more complex stuff which involves programming (development).

However current Shells are at any point in time prepared for both and that's the reason why both tasks are sometimes cumbersome.

Re: Use Zsh

#114
post #94
post #89

Earlier quoted context omitted.

Ugh... Did you actually try this? dima@fatty:/media/usb/DCIM/100RICOH$ ls R * R0022399.JPG R0022400.JPG R0022401.JPG R0022402.JPG dima@fatty:/media/usb/DCIM/100RICOH$ bash -c 'ls R {22392..22402}*' ls: cannot access R22399*: No such file or directory ls: cannot access R22400*: No such file or directory ls: cannot access R22401*: No such file or directory ls: cannot access R22402*: No such file or directory Bash seems…

> How do I pick 9-11 in bash? Like so: file.{9..11} I think that you mean for the files to be numbered like: file.009 file.010 file.011 Bash would try to expand: file.{9..11} => file.9 file.10. file.11 file.0{9..11} => file.09 file.010 file.011 file.00{9..11} => file.009 file.0010 file.0011 Neither would match all files.

  file.{009..011}

Re: Use Zsh

#115

There's one of these "why you should convert from X to Y" posts every week or so. I understand that a person can be somewhat excited about finding a better application to replace their old stand-by and might feel the need to evangelize. I don't see anything wrong with wanting to introduce others to new software with a helpful attitude. However, it seems like all of the bash-to-zsh posts boil down to better autocomple…

I agree wholeheartedly, oh-my-zsh is usually recommended to beginners with zsh, but I've always found that to be a mistake.

If you don't understand what zsh can do, how do you expect to take advantage of a highly specialized pre-configuration?

Re: Use Zsh

#116

There's one of these "why you should convert from X to Y" posts every week or so. I understand that a person can be somewhat excited about finding a better application to replace their old stand-by and might feel the need to evangelize. I don't see anything wrong with wanting to introduce others to new software with a helpful attitude. However, it seems like all of the bash-to-zsh posts boil down to better autocomple…

>I recommend not using oh-my-zsh if you are a beginner I just started started using zsh today, and decided to go with oh-my-zsh instead. zsh is FAR too much configuration to go through to be worth the utility for me. On the other hand, with oh-my-zsh, it took me a few minutes to get a beautiful theme, a bunch of neat plugins (history-substring-search and jump are my favorites right now) and also exposed me to the sol…

This conflict looks succinctly like bottom up vs top down thinking. Neither is more correct.

Re: Use Zsh

#117
post #116

Earlier quoted context omitted.

>I recommend not using oh-my-zsh if you are a beginner I just started started using zsh today, and decided to go with oh-my-zsh instead. zsh is FAR too much configuration to go through to be worth the utility for me. On the other hand, with oh-my-zsh, it took me a few minutes to get a beautiful theme, a bunch of neat plugins (history-substring-search and jump are my favorites right now) and also exposed me to the sol…

This conflict looks succinctly like bottom up vs top down thinking. Neither is more correct.

The question, however, is how did you come to this conclusion? Was it via bottom up or top down thinking?
Post reply on HN