- It can complete all options with Tor version 0.4.7.8.
- As tor
--help
message does not provide options and recommends to check the manual, so bash-completion_parse_help()
does not work, this can lead to outdated futured versions of options, as these options were manually inserted. - As for
--list-torrc-options
, it is complete and will bring all available torrc options for the cli.
- As tor
- It can not complete all possible arguments, because that is would be too much work for one person and would be much better if made by upstream.
- Completing file path, directory, boolean values or few arguments are easy to deal with, but more advanced arguments that involve [addr:]port are better dealt if manually typed.
Note: Windows options were purposefully not set.
Not endorsed by the Tor Project Organization.
Tired of typying the full options, I created this bash completion for tor. It is far from perfect, but it does the basics.
- tor
- bash-completion
- Add tor to
/usr/share/bash-completion/completions/
directory. - Source the completions with
source /usr/share/bash-completion/bash_completion
- Run
tor --<TAB><TAB>