Re: [Help-bash] Changing working directory for bashrc file
From:
Chris Down
Subject:
Re: [Help-bash] Changing working directory for bashrc file
Date:
Fri, 25 Apr 2014 23:40:21 +0800
User-agent:
Mutt/1.5.23 (2014-03-12)
Dear Mr. Anderson,
Rob Anderson writes:
> Dear Mr Ramey,
Statistically speaking, ~99% of people on this list do not go by that
name ;-)
> I am contacting you regarding changing the working directory of the
> bashrc file for the bash-4.1 binary I hope to include in an Android
> ROM. I have so far successfully compiled the actual binary, however I
> would like the bashrc file to be located at /system/etc/bash/bashrc
> (like CyanogenMod) rather than the default location of ~/.bashrc.
> Could you please advise me as to whether this is possible and, if it
> is, how I would go about achieving this?
You can either change it in the source, or invoke bash with --rcfile.
See INVOCATION in the manual file.