4 ms·
The big thing for me is programmable autocompletion. I can autocomplete things that the shell itself doesn't even know about, like git branches and aws-cli comm
by LyndsySimon 9y ago
The big thing for me is programmable autocompletion. I can autocomplete things that the shell itself doesn't even know about, like git branches and aws-cli commands - including autocompleting paths inside an s3 bucket.
- icebraining 9y agoBash has programmable completion as well. See for example: https://github.com/scop/bash-completion https://github.com/scop/bash-completion
- LyndsySimon 9y agoThe last time I looked into this, bash's programmable completion was both an order of magnitude slower and didn't allow tab-completion. Has that changed?
- icebraining 9y agodidn't allow tab-completion What does this mean? I didn't know there was any other kind! I don't know if it's slower, I haven't used zsh in a while, but the completion support for git (e.g. branches) is pretty fast for me.
- LyndsySimon 9y agoWhen I last used it, I could partially type a command, press tab, and the completions would display below the line I was on. It did not modify the input line or the cursor position In zsh, I press tab and the rest of the command is inserted onto the line I’m typing. If there are multiple options I can continue to press tab to cycle through them. I just have to press enter on the one I want. Again, maybe it’s changed, but the last time I used bash I wasn’t able to do this.
- icebraining 9y agoAh, ok. No, it definitively inserts onto the line.