feat: install script

This commit is contained in:
ange 2025-04-04 14:07:26 +00:00
commit d808dd6ae1
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 37 additions and 0 deletions

15
config Normal file
View File

@ -0,0 +1,15 @@
passwd=termux
pkg=(
7zip
bash-completion
curl
fastfetch
fzf
git
jq
manpages
openssh
pass
python
)

22
install.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash -e
. ./config
pkg upgrade -y
pkg install -y "${pkg[@]}"
# shellcheck disable=SC2174
mkdir -pm 0700 "$HOME/.ssh"
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDUccdlgUHzV+AhWDyjwcG4QwSNbybIV8MF7c6XpKQl4' >> "$HOME/.ssh/authorized_keys"
git clone --bare https://git.maby.dev/ange/.dotfiles.git ~/.dotfiles
alias c='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
c checkout -f
c config status.showUntrackedFiles no
sed '/systemctl/d' "$HOME/.bash_profile"
cat <<EOF >> "$HOME/.bash_profile"
gpg-agent
#sshd
EOF