*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Coming from Linux environments I'm used to the bash shell. Used to having coloured dirs and prompt with the path in it etc.
I can do all this stuff via my bash profile but I need it for root in BSD.
I don't want to permanently change the shell from csh to bash as I'm not the only one using this box but when I do login as root how can I change it to bash just for my session, assuming this is an option?
If you've installed the bash port (or the package), it's actually /usr/local/bin/bash. The bash shell is not part of the base system, thus the /usr/local.
Originally Posted by stefaandk
...it's .bashrc like on Linux, I thought it would be .bash_profile like on osx.
See the manpages for bash(1).
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable.
When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc, if that file exists.