Created
June 26, 2026 21:17
-
-
Save zQueal/1a5d88cb6cb14b596abfe83a87cec404 to your computer and use it in GitHub Desktop.
Elvish shell auto RTK completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use str | |
| set edit:after-readline = [ | |
| {|line| | |
| var clean = (str:trim-space $line) | |
| var words = [(str:split " " $clean)] | |
| var targets = [git npm cargo pytest jest uv] | |
| if (and (> (count $words) 0) (has-value $targets $words)) { | |
| try { | |
| e:rtk (all $words) | |
| } catch e { | |
| } | |
| edit:return-line "" | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment