Add installer support for Termux (#540)

This commit is contained in:
Laurent le Beau-Martin 2022-09-25 12:14:51 -04:00 committed by GitHub
parent f93da455a3
commit 6f19e8abf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 6 deletions

View File

@ -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
```

View File

@ -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,6 +169,7 @@ __atuin_install_unsupported(){
# TODO: would be great to support others!
case "$OSTYPE" in
linux-android*) __atuin_install_termux ;;
linux*) __atuin_install_linux ;;
darwin*) __atuin_install_mac ;;
msys*) __atuin_install_unsupported ;;