2013年08月12日
このエントリーをはてなブックマークに追加
ダウンロードします。
Bash Completion Official Homepage

READMEの通りに以下のコマンドを。
./configure
make
make check # optional, requires dejagnu and tcllib
make install # as root

念のためファイルを確認します。
# ls -lF /usr/local/etc/profile.d/bash_completion.sh
-rw-r--r-- 1 root root 672 8月 6 11:19 2013 /usr/local/etc/profile.d/bash_completion.sh

以下のどちらかのファイルに追記します
/etc/bashrc
~/.bashrc.

# vi /root/.bashrc
. /usr/local/etc/profile.d/bash_completion.sh

プロファイルを再読込します
. /root/.bashrc

インストールが正常にできたことを確認します

インストール前(service コマンドでタブを押すと、カレントディレクトリのファイルが表示されます)
# service
.bash_history .lesshst
.bash_logout .rnd
.bash_profile .tcshrc install.log
.bashrc anaconda-ks.cfg install.log.syslog
.cshrc

インストール後(service コマンドでタブを押すと、候補が出てきます)
# service {TABキー}
auditd htcacheclean iptables netfs rdisc sandbox sshd
crond httpd killall network restorecond saslauthd udev-post
halt ip6tables netconsole postfix rsyslog single


stock_value at 11:38│Comments(0)TrackBack(0)技術:2013年 

トラックバックURL

この記事にコメントする

名前:
URL:
  情報を記憶: 評価: 顔