UbuntuのServer版でもDesktop版と同じコマンド補完
メモ。
UbuntuのServer版(JeOS版も含む)つかってる人は知ってると思うけど、Desktop版と比べて補完が恵まれてない。
例えば、Desktop版だと
でも、デフォルトのServer版だとこれが出来ない。
実害無いので放置してたけど、~/.bashrcをちゃんと調べた。
下記のパッケージだった。
UbuntuのServer版(JeOS版も含む)つかってる人は知ってると思うけど、Desktop版と比べて補完が恵まれてない。
例えば、Desktop版だと
$ sudo apt-get [TAB][TAB]とやると
$ sudo apt-getとなる。
autoclean clean purge upgrade
autoremove dist-upgrade remove
build-dep dselect-upgrade source
check install update
$
でも、デフォルトのServer版だとこれが出来ない。
実害無いので放置してたけど、~/.bashrcをちゃんと調べた。
# enable programmable completion features (you don't need to enableが怪しいので/etc/bash_completionを調べてみたらServerには存在し無かったので入れてみたら解決。
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
下記のパッケージだった。
bash-completion - programmable completion for the bash shellインストールは下記でOK。
sudo apt-get install bash-completion



