Skip to content

How to syntax-highlight a fish command? #9793

Closed Answered by faho
JanPokorny asked this question in Q&A
Discussion options

You must be logged in to vote

fish_indent --ansi will highlight any command you give it via stdin. It is a real binary on your system. It will indent all the input as well, use --no-indent to suppress that (it will still reformat to one job per line tho).

Or you could update to fish 3.6 and try the new builtin history pager, which highlights automatically.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@faho
Comment options

@JanPokorny
Comment options

@faho
Comment options

@JanPokorny
Comment options

@faho
Comment options

Answer selected by JanPokorny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants