mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +01:00
Add installer support for Termux (#540)
This commit is contained in:
parent
f93da455a3
commit
6f19e8abf5
10
README.md
10
README.md
@ -177,6 +177,16 @@ pacman -S atuin
|
|||||||
|
|
||||||
And then follow [the shell setup](#shell-plugin)
|
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
|
### From source
|
||||||
|
|
||||||
```
|
```
|
||||||
|
25
install.sh
25
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(){
|
__atuin_install_cargo(){
|
||||||
echo "Attempting install with cargo"
|
echo "Attempting install with cargo"
|
||||||
|
|
||||||
@ -157,12 +169,13 @@ __atuin_install_unsupported(){
|
|||||||
|
|
||||||
# TODO: would be great to support others!
|
# TODO: would be great to support others!
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
linux*) __atuin_install_linux ;;
|
linux-android*) __atuin_install_termux ;;
|
||||||
darwin*) __atuin_install_mac ;;
|
linux*) __atuin_install_linux ;;
|
||||||
msys*) __atuin_install_unsupported ;;
|
darwin*) __atuin_install_mac ;;
|
||||||
solaris*) __atuin_install_unsupported ;;
|
msys*) __atuin_install_unsupported ;;
|
||||||
bsd*) __atuin_install_unsupported ;;
|
solaris*) __atuin_install_unsupported ;;
|
||||||
*) __atuin_install_unsupported ;;
|
bsd*) __atuin_install_unsupported ;;
|
||||||
|
*) __atuin_install_unsupported ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# TODO: Check which shell is in use
|
# TODO: Check which shell is in use
|
||||||
|
Loading…
Reference in New Issue
Block a user