Live data from Hacker News

Use Zsh

fendrich.se

31–40 of 117 posts

Re: Use Zsh

#31
I tried using oh-my-zsh, but all of a sudden bringing up a new terminal (on OS X) went from taking ~1 second to ~5 seconds. Totally killed my interest in zsh.

I'm sure there's a way to make it all work nicely, but bash has been doing just fine for me, I don't feel the need to figure out an entirely new configuration system for a tool that ultimately has little new utility in my workflow.

Re: Use Zsh

#32
post #31

I tried using oh-my-zsh, but all of a sudden bringing up a new terminal (on OS X) went from taking ~1 second to ~5 seconds. Totally killed my interest in zsh. I'm sure there's a way to make it all work nicely, but bash has been doing just fine for me, I don't feel the need to figure out an entirely new configuration system for a tool that ultimately has little new utility in my workflow.

I'm thiiiiiis close to going back to rc, because when there's any kind of load on my system it can take multiple seconds for a new xterm to open with bash. rc starts in no time, and I already use it when I have to write a quick one-off script.

Re: Use Zsh

#33
post #30

Earlier quoted context omitted.

How much software can you write in three seconds?

How many computers do you use? Having to switch between zsh and bash mentally when you from your dev box to a server can be jarring. For some people it's worth it, for others it isn't.

just stick an exec zsh at the end of your bashrc, wrapper in an if statement if it's not available on all machines on your environment.

do people have the same attitude to screen/tmux or vim/emacs (vs nano)?

Re: Use Zsh

#35

Here's another perspective: http://sstephenson.us/posts/on-configuration

This is a classic struggle. I remember having it with someone back in the mid 90's -- "isn't it great to customize your session?" I argued.

I'll mess with colors to help my brain visually sort tasks, but I've abandoned so many configurations over the years it's less brain drag to just use what's there.

Re: Use Zsh

#36

Earlier quoted context omitted.

Syntax. I much prefer the fish syntax, even though the fact that it's different from bash can occasionally cause headaches. When I'm mucking with my shell, I'd rather not be remembering [[ -z ]], because I don't do it often. Basically most shells are designed around power, which is fine. Fish is designed around ease-of-use, which I consider to be a better idea since there's already a ton of power in the UNIX tools th…

Ah, so a lot of it is that you like the config language better! That would not have occurred to me. Thank you for your reply.

The biggest draw of fish is the syntax highlighting at the command line. I still write scripts in bash though.

Re: Use Zsh

#37

This article really feels like bikeshedding to me. I'm always going to use whatever shell comes default with the OS I'm on (which almost always means Bash), simply because changing the shell is an unnecessary block of time that could instead be used writing software. I need a really good reason to switch, something the equivalent of pipes, and if the #1 reason you can give is "Powerful context based tab completion",…

zsh's tab completion is definitely not cosmetic. It can do very useful things like completing scp destination paths over remote hosts.

Re: Use Zsh

#38
Everything in the "Context based tab completion" paragraph is already done by bash_completion.

* It knows which commands git takes? Yes. * which hosts are in my hosts file for ssh? Yes. * which users my system have when I write chmod? Yes. * available packages to apt-get? Yes.

Plus everything in /etc/bash_completion, plus the hundreds of additional commands in /etc/bash_completion.d, plus many, many online resources for creating your own...

Re: Use Zsh

#39

This article really feels like bikeshedding to me. I'm always going to use whatever shell comes default with the OS I'm on (which almost always means Bash), simply because changing the shell is an unnecessary block of time that could instead be used writing software. I need a really good reason to switch, something the equivalent of pipes, and if the #1 reason you can give is "Powerful context based tab completion",…

zsh's tab completion is definitely not cosmetic. It can do very useful things like completing scp destination paths over remote hosts.

This has been done by bash_completion for years.

Re: Use Zsh

#40

This article really feels like bikeshedding to me. I'm always going to use whatever shell comes default with the OS I'm on (which almost always means Bash), simply because changing the shell is an unnecessary block of time that could instead be used writing software. I need a really good reason to switch, something the equivalent of pipes, and if the #1 reason you can give is "Powerful context based tab completion",…

zsh's tab completion is definitely not cosmetic. It can do very useful things like completing scp destination paths over remote hosts.

Just like bash.
Post reply on HN