#!/bin/sh
# setup_termux.sh
# 2022-03-11
# by Gernot Walzl
# The intention of this script is to describe how Termux can be set up.
# The package termux-api requires the app Termux:API to be installed.
config_inputrc () {
cat > "$HOME/.inputrc" <<EOF
# use arrow keys to search the history
"\e[A": history-search-backward
"\e[B": history-search-forward
EOF
}
install_termux_pkgs () {
PKGS="termux-tools termux-api"
pkg update
for PKG in $PKGS; do
pkg install "$PKG"
done
}
install_ssh_client () {
pkg update
pkg install openssh
ssh-keygen
}
config_inputrc
install_termux_pkgs
install_ssh_client
termux-setup-storage # part of termux-tools