Skip to main content

Module detect

Module detect 

Source
Expand description

Fast bash detection heuristic.

Runs on every Enter keypress โ€” zero allocation, no regex, no parsing. Scans raw bytes for bash-specific patterns and triggers.

Functionsยง

looks_like_bash
Quick check: does this string contain bash-specific syntax? This must be FAST โ€” it runs on every Enter keypress. No regex, no parsing โ€” just byte-level pattern scanning.