Custom termux bash.bashrc file with preset aliases and terminal login text intro.
- Clone the repository.
$ cd $HOME && git clone https://github.com/knightfall-cs/termux-bashrc.git
- Backup your current .bashrc file.
$ cd /data/data/com.termux/files/usr/etc && cp -v bash.bashrc $HOME/termux-bashrc/backup/ && cd -
- Copy the bash.bashrc file to your .../usr/etc directory.
$ cd termux-bashrc && cp bash.bashrc /data/data/com.termux/files/usr/etc && exit
- Done. Now restart Termux.
- Type
edit-bashrc
to edit and view the file. - You can change username and default editor by changing variables in # Global.
- You can also customize prompt color scheme and symbol by changing preferred variables in # Prompt.