With GNU bc, you can set the environment variable BC_ENV_ARGS
to be the name of a file that bc should read on startup.
Add the following to your .bashrc
file :
export BC_ENV_ARGS=$HOME/.config/bcrc
if you need to load the standard math library, you can do this :
export BC_ENV_ARGS="-l $HOME/.config/.bcrc"
and you get a .bcrc
like you wish.