Changes between Version 1 and Version 2 of BashCommandCompletion


Ignore:
Timestamp:
Jun 28, 2007, 4:43:54 PM (17 years ago)
Author:
Nicolas
Comment:

Moved the bash script description here, leaving only a link on BoincCmd?. Also changed some of the text. Revert if you disagree.

Legend:

Unmodified
Added
Removed
Modified
  • BashCommandCompletion

    v1 v2  
     1= Command completion for boinc_cmd =
     2
     3The 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
     5For 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}}}
     15If 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}}}
     20and so on. The script also completes host names after the --host option.
     21
     22To 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----
    128{{{
    229# Source this file in bash to get command completion (using tab)