Conversation
With this command, it can generate auto-completion script for specific shell, like bash and fish. Use `eval "$(dora completions <SHELL>)"` to apply the autocompletion script Signed-off-by: drindr <dreamchancn@qq.com>
86e9257 to
d3c4da9
Compare
|
That's great! Could you write down the process to persist those bash modifications within a readme or within the helper of this function? Would it also be possible to auto-detect which shell is currently used like https://stackoverflow.com/questions/9910966/how-to-get-shell-to-self-detect-using-zsh-or-bash to remove the requirement to manually input it? |
2869181 to
4c8cbc3
Compare
|
I have added more help information which can be seen with |
|
I don't think the helper work: (base) ~/D/w/d/e/rust-dataflow ❯❯❯ echo "eval \$(dora completions bash)" >> .bashrc (base) ✘ 130 cli-autocompletion ✭ ◼
zsh: no such file or directory: .bashrcAlso, you didn't mention about auto detection of shell. Could you also remove the s of completions as there is at most one auto-completion. |
Sry, it is my fault. Do you mean write down all the available shell as example in the help info?
Fine. |
4c8cbc3 to
583c877
Compare
|
Updated. |
Signed-off-by: drindr <dreamchancn@qq.com>
583c877 to
51ef62d
Compare
|
Tested on bash, fish and zsh, and the help info has updated as below: |
|
Great! Thanks! |
With this command, it can generate auto-completion script for specific shell, like bash and fish.
Use
eval "$(dora completions <SHELL>)"to apply the autocompletion script.This PR is proposed in #1228.