forked from nico/dots
conf: add termux installation script
This commit is contained in:
parent
69b98022c6
commit
5debd669ff
1 changed files with 20 additions and 1 deletions
21
conf.sh
21
conf.sh
|
|
@ -37,13 +37,32 @@ update_packages() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_termux() {
|
||||||
|
pkg update -y
|
||||||
|
pkg upgrade -y
|
||||||
|
pkg install -y zsh openssh stow neovim zoxide tealdeer file htop jq fzf ripgrep wget ffmpeg imagemagick unzip unar bat ani-cli tmux
|
||||||
|
|
||||||
|
cd "$HOME/dots"
|
||||||
|
stow stow
|
||||||
|
|
||||||
|
echo '#!/data/data/com.termux/files/usr/bin/sh
|
||||||
|
termux-wake-lock
|
||||||
|
sshd' > /data/data/com.termux/files/home/.termux/boot
|
||||||
|
|
||||||
|
chsh -s zsh
|
||||||
|
echo "done!"
|
||||||
|
}
|
||||||
|
|
||||||
HELPTEXT="$0
|
HELPTEXT="$0
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
update update packages on your system"
|
update update packages on your system
|
||||||
|
install-termux update packages on your system"
|
||||||
|
|
||||||
if [ "$1" = "update" ]; then
|
if [ "$1" = "update" ]; then
|
||||||
update_packages
|
update_packages
|
||||||
|
elif [ "$1" = "install-termux" ]; then
|
||||||
|
install_termux
|
||||||
else
|
else
|
||||||
echo "$HELPTEXT"
|
echo "$HELPTEXT"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue