Specifying the bash shell as the default android terminal shell

If you like me, prefer the bash shell over the sh shell, you will have compiled or copied the bash binary to your android system and started running it manually by running bash.

You may have noticed that your .bashrc doesnt get imported on running the shell. This is because by default .bashrc doesnt get imported.

To import .bashrc, you need to add the following line to /data/.bash_profile:

source /data/.bashrc

And add the relevant lines to /data/.bashrc

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.