FreeBSD/bash2

bash2

bash2を導入してみます。

  1. 環境
  2. インストール
  3. シェルを変更
  4. 起動スクリプト変更

環境

FreeBSD 6.0
bash 2.05b

インストール

# cd /usr/ports/shells/bash2
# make install clean ;rehash


シェルを変更

$ chsh -s /usr/local/bin/bash


起動スクリプト変更

$ cp /usr/local/share/examples/bash/startup-files/bash-profile ~/.bash_profile
$ cp /usr/local/share/examples/bash/startup-files/bashrc ~/.bashrc


.bashrcプログラムから呼び出された時に読み込まれるスクリプト
.bash_profileコンソールからログインした時に読み込まれるスクリプト