私は、コマンドがタブで完了することがあることに気付きました。linuxコマンドのタブ補完機能はどのように実装されていますか?
xenのxmコマンド
あなたはXM [スペース]、[タブ]を入力し、それは有効なオプション 出力します:
かなり滑らかなのですaddlabel destroy info network-attach resume sysrq vnet-delete
block-attach dmesg labels network-detach rmlabel top vnet-list
block-detach domid list network-list save trigger vtpm-list
block-list domname loadpolicy new sched-credit unpause
cfgbootpolicy dry-run log pause sched-sedf uptime
console dump-core makepolicy reboot serve vcpu-list
create dumppolicy mem-max rename shutdown vcpu-pin
debug-keys getlabel mem-set resources start vcpu-set
delete help migrate restore suspend vnet-create
を!
Linuxで独自のタブコマンド補完を実装するにはどうすればよいですか?
これはシェルによって行われます。あなたは何の殻を求めていますか? (私はbashを推測しています、今ほとんどのディストリビューションでデフォルトになっています) – Cascabel
はいbashです。私はbashで私の質問にタグ付けしました。それは何らかのラッパースクリプトですか? – Matt
http://stackoverflow.com/questions/5570795/how-does-bash-tab-completion-work –