KVMのゲストOS、FreeBSD12.2-RELEASEのログインシェルをcshからbashに変更したょ。
現在のシェル確認
# echo $SHELL
/bin/csh
bashをインストールする
## pkg install bash
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.15.10...
Extracting pkg-1.15.10: 100%
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 6.7MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 31959 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 114 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
adwaita-icon-theme: 3.38.0e.
---省略---
[39/114] Extracting gmp-6.2.0: 100%
[40/114] Installing bash-5.0.18_3...
[40/114] Extracting bash-5.0.18_3: 100%
[41/114] Installing font-misc-meltho-1.0.3_4...
---省略---
rootもユーザもシェル変更!
# chsh -s /usr/local/bin/bash
chsh: user information updated
# chsh -s /usr/local/bin/bash hoge
chsh: user information updated
ログインしなおして確認
# echo $SHELL
/usr/local/bin/bash
$ echo $SHELL
/usr/local/bin/bash
普段使ってるBourne Again shellが好き♪
コメント