Compare commits

...

2 Commits

Author SHA1 Message Date
4b783501e9
fix: remove incompatible dotfiles 2025-04-06 14:08:18 +00:00
4990f7b4cc
fix: apt-get -y crashes on prompts 2025-04-06 13:49:50 +00:00

View File

@ -1,5 +1,4 @@
#!/bin/bash -e #!/bin/bash -e
export DEBIAN_FRONTEND=noninteractive
pkg=( pkg=(
7zip 7zip
@ -15,19 +14,14 @@ pkg=(
python python
) )
pkg upgrade -y # TODO https://github.com/termux/termux-tools/blob/master/scripts/termux-change-repo.in
pkg install -y "${pkg[@]}" yes | { pkg upgrade; pkg install "${pkg[@]}"; }
pkg autoprune -y
# shellcheck disable=SC2174 # shellcheck disable=SC2174
mkdir -pm 0700 "$HOME/.ssh" mkdir -pm 0700 "$HOME/.ssh"
curl https://yw5n.com/ssh >> "$HOME/.ssh/authorized_keys" curl https://yw5n.com/ssh >> "$HOME/.ssh/authorized_keys"
git clone --depth 1 --bare https://git.maby.dev/ange/.dotfiles.git ~/.dotfiles
git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" checkout -f
git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" config status.showUntrackedFiles no
sed '/systemctl/d' "$HOME/.bash_profile"
cat <<EOF >> "$HOME/.bash_profile" cat <<EOF >> "$HOME/.bash_profile"
gpg-agent gpg-agent
#sshd #sshd