diff --git a/README.md b/README.md index 86695f0e20f..70d83334181 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,16 @@ pacman -S atuin And then follow [the shell setup](#shell-plugin) +### Termux + +Atuin is available in the Termux package repository: + +``` +pkg install atuin +``` + +And then follow [the shell setup](#shell-plugin) + ### From source ``` diff --git a/install.sh b/install.sh index 916b39d19d9..df66dbc2f68 100755 --- a/install.sh +++ b/install.sh @@ -118,6 +118,18 @@ __atuin_install_mac(){ } +__atuin_install_termux(){ + echo "Termux detected!" + + if command -v pkg &> /dev/null; then + echo "Installing with pkg" + pkg install atuin + else + echo "Could not find pkg" + __atuin_install_unsupported + fi +} + __atuin_install_cargo(){ echo "Attempting install with cargo" @@ -157,12 +169,13 @@ __atuin_install_unsupported(){ # TODO: would be great to support others! case "$OSTYPE" in - linux*) __atuin_install_linux ;; - darwin*) __atuin_install_mac ;; - msys*) __atuin_install_unsupported ;; - solaris*) __atuin_install_unsupported ;; - bsd*) __atuin_install_unsupported ;; - *) __atuin_install_unsupported ;; + linux-android*) __atuin_install_termux ;; + linux*) __atuin_install_linux ;; + darwin*) __atuin_install_mac ;; + msys*) __atuin_install_unsupported ;; + solaris*) __atuin_install_unsupported ;; + bsd*) __atuin_install_unsupported ;; + *) __atuin_install_unsupported ;; esac # TODO: Check which shell is in use