From 86c6bfcc7a46dba59cce2cbff3440a6fd3710b1a Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 4 Apr 2025 18:33:03 +0000 Subject: [PATCH] feat: merge in one curlable file --- config | 15 --------------- install.sh | 24 ++++++++++++++++++------ 2 files changed, 18 insertions(+), 21 deletions(-) delete mode 100644 config diff --git a/config b/config deleted file mode 100644 index a896239..0000000 --- a/config +++ /dev/null @@ -1,15 +0,0 @@ -passwd=termux - -pkg=( - 7zip - bash-completion - curl - fastfetch - fzf - git - jq - manpages - openssh - pass - python -) diff --git a/install.sh b/install.sh index ea21c18..b14b570 100755 --- a/install.sh +++ b/install.sh @@ -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"