コマンドの補完はBashにもできる(らしい。
というわけで試してみた。bash-completion
bash-completionは補完をサポートする基本パッケージ
takuya@ml115:~$ aptitude show bash-completion Package: bash-completion State: installed Automatically installed: no Version: 20080705 Priority: standard Section: shells Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org> Uncompressed Size: 459k Depends: bash (>= 3.1dfsg-9) Replaces: bash (< 3.1dfsg-9) Description: programmable completion for the bash shell カスタマイズ可能な、動的補完、Bash向け。 bash completion extends bashs standard completion behavior Bashの補完はBash補完の基本機能と動作を to achieve complex command lines with just a few アーカイブしたりする複雑なコマンドを単純なキー操作で出来るようにします。 keystrokes. This project was conceived to produce programmable completion routines for the most common Linux/UNIX commands, reducing the amount of typing sysadmins and programmers need to do on a daily basis.
導入は簡単 aptから
sudo aptitude install bash-completion
導入前
takuya@chion:~$ aptitude <TAB><TAB> .aptitude/ .screenrc mbox .bash_history .ssh/ migrationtools/ .bash_logout .test2.ldif.swp passwd.ldif .bashrc .viminfo .screen-profiles/ takuya@chion:~$ a
導入後
takuya@chion:~$ aptitude <TAB><TAB> autoclean download hold purge search update changelog forbid-version install reinstall show upgrade clean forget-new keep-all remove unhold why dist-upgrade full-upgrade markauto safe-upgrade unmarkauto why-not
おおおお
by takuya the bash lover