4 ms·
Have you checked out ZSH? It can do this nicely.
by stevewillows 9y ago
Have you checked out ZSH? It can do this nicely.
- signa11 9y agozsh via its ultra-tunable completions can do only 1st part of op's request i.e command option completion, but not the second part i think... for example, i do the following: anupam@virat ~ % autoload -Uz compinit anupam@virat ~ % compinit anupam@virat ~ % git a<TAB> add -- add file contents to index am -- apply patches from a mailbox apply -- apply patch to files and/or to index archimport -- import an Arch repository into git archive -- create archive of files from named tree edit-001: added trivial example.
- mtrycz2 9y agoMy (pretty much vanilla) zsh works quite nicely https://i.imgur.com/SZqu63p.png https://i.imgur.com/SZqu63p.png I'm not sure it covers all of the obscure commands you can think of, but 99% of the time it's great.
- btschaegg 9y agoAs far as I can remember the only standard command I use and that my ZSH has trouble with is `dd`. Luckily, its arguments aren't that complicated.
- asgeir 9y agoMy zsh autocompletion list for git add actually contains the stageable files. I don't know if this is stock zsh behaviour or related to my prezto https://github.com/sorin-ionescu/prezto https://github.com/sorin-ionescu/prezto config but it can be done Edit: looks like it might be stock behaviour https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_git#L47 https://github.com/zsh-users/zsh/blob/master/Completion/Unix...
- ropeladder 9y agoWeird. I'm using Zsh and I swear I've tried that before with nothing happening, but it does actually work. Thanks!