Skip to content

bash completion

Oliver Gaida edited this page Jun 18, 2020 · 2 revisions

put the next line in the ~/.bashrc and source it:

the short version, but it loads a second or two:

complete -W "$(rusdc | sed '1 d' | awk '{print $2}' | ruby -e 'puts ARGF.read.split(/\n/).join(" ")')" rusdc

the long version, but loads quicker:

complete -W "chg_add_nr chg_list_nr create field_names find get get_all_attachments_of_co get_attachment_of_ci get_attachment_of_co help in_add_2_chg in_list_child_ins list_attachments_of_ci list_attachments_of_co nr_add_child nr_changes nr_childs nr_incidents nr_parents update update_attr update_attr_by_id update_ref_attr update_ref_attr_by_id" rusdc

for a short demo look here asciinema

Clone this wiki locally