Skip to content

Commit

Permalink
feat: Add support for Android (Termux)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Oct 15, 2024
1 parent 69f1cf7 commit 6e0841c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .chezmoiscripts/run_once_install-packages.android.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if (eq .chezmoi.os "android") -}}
#!/usr/bin/env bash
set -euo pipefail

# TermuxAptfile hash: {{ include "packages/TermuxAptfile" | sha256sum }}

# Install packages
apt-get install -y apt-transport-https
apt-get update
cat {{ .chezmoi.sourceDir }}/packages/TermuxAptfile | xargs apt-get install -y
{{- end }}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# My dotfiles

Complete setup for macOS, Arch Linux, Debian/Ubuntu and Synology NAS.
Complete setup for macOS, Arch Linux, Debian/Ubuntu, Android (Termux) and Synology NAS.

Installs useful binaries (`bat`, `colordiff`, `curl`, `fzf`, `git-delta`, `htop`, `gdu`, …), the [Starship](https://starship.rs) prompt and `zsh` as default shell.

Also includes my [AutoHotkey](https://autohotkey.com) keyboard mappings for Windows (not installed automatically).


## Installation

Expand Down
18 changes: 18 additions & 0 deletions packages/TermuxAptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bat
colordiff
curl
diffutils
dnsutils
fd-find
gawk
grep
gzip
inetutils
nano
net-tools
nmap
openssh
sed
tar
unbound
unzip

0 comments on commit 6e0841c

Please sign in to comment.