さくらVPSにbash-completionをいれる。


さくらVPSにbash-completionをいれる。 | Bamboo lath 日々の記録bash-completionをさくらのVPSにいれる。
※別にさくらVPS用に特別な何かをしている訳ではないです。

bash-completionとは?
bashの補完機能パッケージ。

実際にどう嬉しいのかはこのサイトとかを参照。

epelが有効になっている状態で実行しないと無いかも。

# yum search bash-completion
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: ftp.nara.wide.ad.jp
 * base: ftp.nara.wide.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.nara.wide.ad.jp
 * remi: remi-mirror.dedipower.com
 * updates: ftp.nara.wide.ad.jp
addons                                                                                                                                                       |  951 B     00:00
base                                                                                                                                                         | 2.1 kB     00:00
epel                                                                                                                                                         | 3.7 kB     00:00
extras                                                                                                                                                       | 2.1 kB     00:00
remi                                                                                                                                                         | 2.5 kB     00:00
updates                                                                                                                                                      | 1.9 kB     00:00
340 packages excluded due to repository priority protections
============================================================================= Matched: bash-completion =============================================================================
bash-completion.noarch : Programmable completion for Bash

見つかったのでインストール

# yum install bash-completion
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: ftp.nara.wide.ad.jp
 * base: ftp.nara.wide.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.nara.wide.ad.jp
 * remi: remi-mirror.dedipower.com
 * updates: ftp.nara.wide.ad.jp
340 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:1.2-4.el5.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================
 Package                                         Arch                                   Version                                          Repository                            Size
====================================================================================================================================================================================
Installing:
 bash-completion                                 noarch                                 1:1.2-4.el5.2                                    epel                                 203 k

Transaction Summary
====================================================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 203 k
Is this ok [y/N]: y
Downloading Packages:
bash-completion-1.2-4.el5.2.noarch.rpm                                                                                                                       | 203 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : bash-completion                                                                                                                                              1/1

Installed:
  bash-completion.noarch 1:1.2-4.el5.2

Complete!

.bashrcに以下を追加

$ vim ~/.bashrc
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
$ source .bashrc

エラーがでなければOK。

 

コメントを残す

メールアドレスが公開されることはありません。