feat: merge in one curlable file

This commit is contained in:
ange 2025-04-04 18:33:03 +00:00
parent d808dd6ae1
commit 86c6bfcc7a
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 18 additions and 21 deletions

15
config
View File

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

View File

@ -1,18 +1,30 @@
#!/bin/bash -e
export DEBIAN_FRONTEND=noninteractive
. ./config
pkg=(
7zip
bash-completion
curl
fastfetch
fzf
git
jq
manpages
openssh
pass
python
)
pkg upgrade -y
pkg install -y "${pkg[@]}"
# shellcheck disable=SC2174
mkdir -pm 0700 "$HOME/.ssh"
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDUccdlgUHzV+AhWDyjwcG4QwSNbybIV8MF7c6XpKQl4' >> "$HOME/.ssh/authorized_keys"
curl https://yw5n.com/ssh >> "$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
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"