3 ms·
I use the terminal on a daily basis, but not too much with shell scripts anymore. Will I notice a difference?
by checkyoursudo 7y ago
I use the terminal on a daily basis, but not too much with shell scripts anymore. Will I notice a difference?
- saagarjha 7y agoIf you just type commands into a prompt, then no, not really. If you do anything more advanced than that I think you’ll notice the differences quite quickly (I did).
- checkyoursudo 7y agoOn my laptop, which is my only macOS device, the only scripts I use are a few python ones. Anything more advanced is on a linux desktop or server. Otherwise, on mac it's mostly ranger, vim, and ssh. I've been tempted to try other shells, but at this point after using Bash for 15 years or something, I've just never had the motivation enough to do it.
- hylaride 7y agozsh combined with oh-my-zsh changed my life, but I spend a lot of time in the terminal.
- Hamuko 7y ago`brew install zsh` and find out.
- teilo 7y agoNo need for homebrew. It's already there. Mojave ships with 5.3: ~ /bin/zsh --version zsh 5.3 (x86_64-apple-darwin18.0)
- Bahamut 7y agoMost shell scripts start with a reference to the program that should execute them at the top of the file (i.e. #!/usr/bin/bash), so this shouldn't affect most people, especially since this change will only apply to new users.
- checkyoursudo 7y agoI missed that "new user accounts" the first time I read it.
- aequitas 7y agoDepends on the default Zsh configuration file they provide. When I used Zsh in the past with just the default config I found some Bash 'features' missing. Stuff like reverse-i-search (ctrl-r) and tab-completion. Most of them are simple config changes but they don't make a default Zsh a drop-in replacement for Bash from a user perspective. I think this is also the reason projects like Oh-my-zsh.
- j0057 7y agoNo, because the syntax of zsh is mostly similar to bash. Yes, because it's only mostly similar. For scripts that start with `#!/bin/bash`, no difference at all, because they will still run with bash.