Hacker News new | ask | show | jobs
by Waterluvian 3190 days ago
I want a terminal that highlights things it thinks are off. Like when I type cd cd or git git. But I don't want it to auto fix nor wait until the command is issued to complain.

This is because I want to be the sole controller of what command is actually issued. Call me an old curmudgeon but I just don't trust the auto fix solutions.

Edit: had no idea about Fish. Thank you, all.

4 comments

Fish shell like syntax highlighting for zsh: https://github.com/zsh-users/zsh-syntax-highlighting

Fish-like autosuggestions for zsh: https://github.com/zsh-users/zsh-autosuggestions

Or if you don“t care for fiddling about too much and just want it to work out of the box: http://ohmyz.sh/
That's kinda what fish -- the friendly interactive shell - does, but more towards tab autocompletion than error detection.
Fish does this for missing files (though not invalid subcommands): https://fishshell.com/
Hey, don't forget about zsh with a highlighting plugin! :)
I'm using this without problems, and it's so comfortable to see the red highlighting when you mistyped: https://github.com/zdharma/fast-syntax-highlighting
That's actually EXACTLY what I had in mind. The fast version is so much better! :)