#bash configuration file location
4 messages · Page 1 of 1 (latest)
Your user config file for Bash should be located at ~/.bashrc.
If that does not exist you can simply create it with your text editor of choice.
Some other ways to express that file location would be $HOME/.bashrc,
or in the case of Termux,
/data/data/com.termux/files/home/.bashrc
~ and $HOME both resolve to the user's home directory.
There is also a system bashrc, located at:
/etc/bash.bashrcon a "regular" Linux system- or
$PREFIX/etc/bash.bashrcon Termux
The absolute path to it on Termux is/data/data/com.termux/files/usr/etc/bash.bashrc
You shouldn't be using it for your personal configuration.
It's intended to set up some defaults for the distribution.
In Termux's case it just sets up shell history, a basic prompt, command-not-found and completions if bash-completion is installed.
Thank you for marking this question as solved!
Learn more