bash - Is there an `rc` file for the command line calculator `bc`? -
based on answer this question, default scale = 2 every time start bc command line (or inside vim). however, man bc did not mention .bcrc file, , when experimentally created ~/.bcrc, did not have noticeable effect.
is there environmental variable or rc file can set give default options bc?
with gnu bc, can set environment variable bc_env_args name of file bc should read on startup. add following .bashrc file:
export bc_env_args=$home/.bcrc and .bcrc wish.
Comments
Post a Comment