4

I'm using prezto framework for zsh and started wondering if I really need zsh.

Main features I really enjoy are:

  • syntax highlighting for commands,
  • fancy prompt when in a git repository and
  • the possibility of tabbing part of a word and it autocompletes (example: I have a list of images with the same suffix, IMG_2567, I do '67 + tab' it auto completes to IMG_2567 - it's really handy).

Is it achievable only using bash?

  • 3
    fancy prompt: yes, with PROMPT_COMMAND. I don't know about the other two, I think not... But why would you not use zsh? – Gilles 'SO- stop being evil' Jun 1 '16 at 21:39
  • @Gilles all machines I use have bash, not all have zsh. I know zsh is not that hard to install, but one of the machines I can't install nothing and I was planning to use stuff that is already available (default) in Linux installations. Yes, I know about PROMPT_COMMAND but the other two features would be really nice. – Somebody still uses you MS-DOS Jun 3 '16 at 17:32
1

So far as I've seen:

  1. Syntax highlighting for commands: not so much in bash.
  2. git-aware prompt: yes if liquidprompt is installed. (liquidprompt can also be installed over zsh.)
  3. Autocompletion: nothing built in that does inclusive autocompletion by suffix, infix, and prefix. bash-completion only provides prefix-based autocompletion.

    On github there's an 11K fuzzy_bash_completion script that does do suffix and infix completion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.