Advantages and Disadvantages of Using Zsh Instead of Bash (or other shells)

Advantages that I appreciate:

  • Much easier prompt definitions. notably dynamic/multine prompts.
  • Right Prompt? affirmative, thank you!
  • Awesome set (more comprehensive than BASH) of motor vehicle Completions square measure a lot of quicker and smarter (e.g. case insensitive completion, good defaults)
  • Path enlargement is pure win. (cd /v/w [tab] == cd /var/www)
  • Path Replacement is pretty cool additionally.
  • Spelling Correction (setopt correct) is mighty amazing on behalf of me.
  • oh-my-zsh - giant, community driven framework for all forms of bells and whistles.
  • The Zsh Line Editor ... simply google it
  • Key Bindings? affirmative, thank you!
  • Globbing is amazing (Extended, inline, just wow!)

Advantages and Disadvantages of Using Zsh Instead of Bash (or other shells)



Disadvantages:

  • I've not found any. As Jesse Tov same, everything you recognize from bash still applies, and you get Christmas other to that.

One of the items i really like concerning zsh is multi-line piece of writing. thus if you write a for-loop at the instruction and return in your history to edit and re-invoke it, you may be ready to edit all the lines of your command on separate terminal lines, not a mashed-up single line like bash.

This feature is thus powerful it may be used for multiple purposes: man zshcontrib http://linux.die.net/man/1/zshcontrib and take a glance at izzard. it'll enable you to edit a file or a operate in memory while not seizing the complete screen.

I've even co-oped this feature for my very own personal scripts to permit Maine to send short emails or IMs with multi-line piece of writing while not invoking the full-screen vim.

There square measure several alternative options, which can or might not are enforced by bash already (bash and zsh have borrowed heavily from one another over the years):

Recursive file globbing, e.g. **/* can expand to any or all the files within the directory tree

Awesome set of default autocompletions

Post a Comment for "Advantages and Disadvantages of Using Zsh Instead of Bash (or other shells)"