Change your default shell in FreeBSD
With all the hype surrounding Ubuntu, I decided to go a different direction and try out FreeBSD. I like to do the opposite of what everyone else does.
The install was smooth, the initial login was great. And so here I am, at the command-line.
First thing, I gotta have bash. sh just dosen’t cut it for me. So… how to do that??
which bash returned nothing. whereis bash says I have a copy, but I’m not famaliar with the ports system to know how to start. I dug through some docs and found this:
Log in as root and do:
pkg_add -r bash
This will download bash and its dependencies from, um, the, repository? I’ve got a lot of new terms to learn.
Is it there?
grep bash /etc/shells
/usr/local/bin/bash
awesome. its there and waiting. Now to make it my new default!
As user, do:
chsh -s /usr/local/bin/bash
enter your password,
log out,
log in,
echo $SHELL
/usr/local/bin/bash
Yeah!
Well that was easy, whats next?