| | 1 | = Command completion for boinc_cmd = |
| | 2 | |
| | 3 | The bash shell has a useful facility to complete commands when you press [TAB]. There is a script which goes a bit further and lets bash complete [BoincCmd boinc_cmd] own commands and options. |
| | 4 | |
| | 5 | For example if you type '''boinc_cmd --get[TAB]''' it gives you all commands which begin with --get: |
| | 6 | {{{ |
| | 7 | --get_cc_status --get_project_status |
| | 8 | --get_disk_usage --get_proxy_settings |
| | 9 | --get_file_transfers --get_results |
| | 10 | --get_host_info --get_screensaver_mode |
| | 11 | --get_messages --get_simple_gui_info |
| | 12 | --get_project_config --get_state |
| | 13 | --get_project_config_poll |
| | 14 | }}} |
| | 15 | If you now press 'p' the selection is reduced to: |
| | 16 | {{{ |
| | 17 | --get_project_config --get_project_status |
| | 18 | --get_project_config_poll --get_proxy_settings |
| | 19 | }}} |
| | 20 | and so on. The script also completes host names after the --host option. |
| | 21 | |
| | 22 | To use this command completion, save the following script on a file and source it in bash. |
| | 23 | {{{ |
| | 24 | #!html |
| | 25 | <!-- instructions are needed on what exactly users are supposed to do to use the script, ie what "source it in bash" means. --> |
| | 26 | }}} |
| | 27 | ---- |