2024-08-13 15:42:20 +00:00
|
|
|
# ~ajhalili2006's dotfiles in Termux
|
2022-12-25 15:55:37 +00:00
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
> [!note]
|
|
|
|
> For the main documentation itself, [see the README on the main branch](https://mau.dev/andreijiroh-dev/dotfiles/blob/main/README.md).
|
2022-12-25 15:55:37 +00:00
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
My dotfiles, customized for [Termux](https://termux.dev) and friends (context: Android OS).
|
|
|
|
Based off <https://drewdevault.com/2019/12/30/dotfiles.html>, but uses `yadm` to manage home directory's version control
|
|
|
|
as if I do prefixing commands with `git -C ~`.
|
2023-08-12 02:56:06 +00:00
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
## Quick deploy / Speedrun
|
2022-12-25 15:55:37 +00:00
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
```bash
|
|
|
|
# The script should detect that we're inside Termux, although we can force it
|
|
|
|
# with the --termux flag.
|
|
|
|
curl -fsSL https://scripts.andreijiroh.xyz/dotfiles/setup.sh | bash -s --termux
|
2023-12-16 02:51:57 +00:00
|
|
|
```
|
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
Alternatively:
|
2022-12-25 15:55:37 +00:00
|
|
|
|
|
|
|
```bash
|
2024-08-13 15:42:20 +00:00
|
|
|
pkg install git git-lfs yadm gh glab-cli openssh
|
|
|
|
git init -m main
|
|
|
|
git remote add lab https://mau.dev/andreijiroh-dev/dotfiles
|
|
|
|
git fetch --all
|
|
|
|
git switch lab/termux
|
|
|
|
yadm bootstrap
|
2022-12-25 15:55:37 +00:00
|
|
|
```
|
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
## Differences from main branch
|
2023-01-05 17:29:53 +00:00
|
|
|
|
2024-08-13 15:42:20 +00:00
|
|
|
* Termux app customizations are stored in [`.termux/termux.properties`](.termux/termux.properties) file.
|
|
|
|
* Heavy usage of `safe.storage` in Git user config for cross-app storage access, especially for Git repos via Obsidian.
|
|
|
|
* Shell shebang patches via `termux-fix-shebang`
|
|
|
|
* Some workarounds for using `keychain`
|