3 ms·
That sounds useful. I used to write tons of ZSH scripts when I used to obsessively make my Linux desktop experience nice and automated. Writing custom completio
by dmix 8y ago
That sounds useful. I used to write tons of ZSH scripts when I used to obsessively make my Linux desktop experience nice and automated. Writing custom completions always felt awkward for me and unintuitive (like most ZSH programming).
Does your shell_completion library work with ZSH? I'm not familiar with how sh/bash differs here from ZSH but I'd image it'd be easy to make compatible.
I'm waiting patiently for Evlish to mature so I can use their Go-like (and Go-powered) scripting language and burn my old ZSH scripts in a fire. https://github.com/elves/elvish https://github.com/elves/elvish
- chubot 8y agoIf you're using multiple shells like zsh and Elvish, then you might be interested in my proposal below for shell-agnostic autocompletion: https://news.ycombinator.com/item?id=19950892 https://news.ycombinator.com/item?id=19950892 I talked with the author of Elvish about it, and we both want it to happen, but are both working on other things now AFAIK. If you managed to write a working bash/zsh completion script, then kudos :) It's not easy. The basic idea is that shell completions could be both (1) shared among shells and (2) moved into the same language that the binary is written in (optionally).