Skip to content

Instantly share code, notes, and snippets.

@knife0125
Last active December 15, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knife0125/5316124 to your computer and use it in GitHub Desktop.
Save knife0125/5316124 to your computer and use it in GitHub Desktop.

bash-completionのインストール

前提

centOS6.4をminimalでインストールしていることを前提としています。

スーパーユーザ(root)でのインストール

epelリポジトリの準備

cd /opt
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
vi /etc/yum.repos.d/epel.repo
    < 6 enabled=1
    > 6 enabled=0

bash-completionのインストール

yum --enablerepo=epel install bash-completion -y

bash-completionの有効化

source /etc/bash_completion

動作確認

コマンド入力後にTabキーを二回クリックして、サブコマンドの候補などが表示されることを確認

個人環境での導入

開発用サーバなどで、自身の開発環境のみにインストールした場合などは以下のようにする。 (必要が出たときか、暇なときに追記)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment