Minimal Termux dotfiles -- bash + vim, nothing else.
Sibling of winfiles (Windows / PowerShell) and archfiles (Arch / Hyprland / Zsh). Same philosophy, scaled down for a phone:
- Two configs only:
.bashrcand.vimrc. - No prompt frameworks, no plugin managers, no plugins.
- No sudo, no systemd, no services -- pure Termux.
- One bootstrap script. Symlinks. A package list. That's it.
| Area | Choice |
|---|---|
| Shell | bash (Termux default) |
| Prompt | plain PS1, git branch + exit-code marker |
| Editor | vim (works with the tiny build) |
| Package | pkg (Termux's apt wrapper) |
droidfiles/
|-- README.md LICENSE .gitignore .gitattributes .editorconfig
|-- install.sh uninstall.sh symlinks.sh
|-- pkglist.txt # source of truth (curated)
|-- pkglist.installed.txt # auto-snapshot written by install.sh
|-- bash/
| |-- .bashrc
| `-- README.md
`-- vim/
|-- .vimrc
`-- README.md
In a fresh Termux session:
pkg install -y git
git clone https://github.com/muhbrohim/droidfiles ~/droidfiles
cd ~/droidfiles
./install.sh(SSH URL: git@github.com:muhbrohim/droidfiles.git -- after you set up
keys via ssh-keygen + gh auth login.)
install.sh is idempotent. Re-run any time.
- Verifies you are in Termux (or asks to continue anyway).
pkg update && pkg upgrade -y.pkg install -yevery line ofpkglist.txt.- Optionally runs
termux-setup-storage(prompted, only if~/storagemissing). - Symlinks
bash/.bashrc->~/.bashrcandvim/.vimrc->~/.vimrc. - Smoke-tests core commands.
- Writes
pkglist.installed.txtwith everything currently installed.
exec bash -l # reload .bashrc
git config --global user.email "you@example.com"
git config --global user.name "Your Name"pkg install openssh
passwd # set a password
sshd # start the daemon (port 8022)
# from your desktop:
# ssh -p 8022 <user>@<phone-ip>See bash/README.md for the full list. Quick taste:
gs/gcp(safe one-command git sync with.env/large-file guard).mkcd,extract,bck(.vNbackups),pslist,pskill.cdf,rgf,vf,y-- fzf/fd/rg/yazi helpers, all gated bycommand -v.- Auto-upgrade
lstoezaandcattobatwhen installed. pku/pki/pkr/pks/pkl--pkgshortcuts.cdstorjumps to~/storage/shared.
See vim/README.md. Zero plugins. Leader is <Space>.
Public repo. Machine- or work-specific things live in:
~/.bashrc.local~/.vimrc.local
Both gitignored via the **/*.local glob.
The committed config never sets a git identity for you -- by design.
./uninstall.sh # dry run
./uninstall.sh --apply # remove the two symlinks
./uninstall.sh --apply --pkgs # also uninstall pkglist.txt packagesPackages installed as dependencies, Termux itself, and the repo are never touched.
MIT. See LICENSE.