bash or sh is shell for freebsd
but i will use bash rather than sh
install bash using this command
pkg_add -r bash
To test it, you must enter the full path to bash:
/usr/local/bin/bash
Your prompt will change, as a sign you are using a different shell now
Change root shell from ‘/bin/sh’ to ‘/usr/local/bin/bash’
pw usermod user_name -s /usr/local/bin/bash
show the user
pw usershow user_name
or you can use this command but be carefull
env SHELL=/usr/local/bin/bash /usr/local/bin/bash -l
change
shell : /bin/sh
to
shell : /usr/local/bin/bash
last change the vi or ee editor in .profile
[root@bsd ~]# pico .profile
change from
export EDITOR=ee or vi
to
export EDITOR=nano