Bash – Bash Syntax Colouring

bashsyntax highlighting

I tried the fish shell, and love the fact that it does syntax colouring in the shell itself: fish syntax colouring

Is there some way to do this in bash?

Best Answer

Real time syntax coloring is a lot of work, especially with shells whose syntax is trickier than fish's. Only fish has it out of the box.

Zsh has syntax coloring if you install the zsh-syntax-highlighting add-on.

I'm not aware of any effort to do this with bash.