feat: install script
This commit is contained in:
commit
d808dd6ae1
15
config
Normal file
15
config
Normal 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
22
install.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user