diff options
| author | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
| commit | e497345779c98353ca3481121981d7ef41bf7b73 (patch) | |
| tree | 4be69ba5515bdd5ef758d097ae3a1d083521b3ee /.install/runall | |
| parent | 71e75e351867060d8cf00e676b70341022f0fe17 (diff) | |
Refactor scripts
Diffstat (limited to '.install/runall')
| -rwxr-xr-x | .install/runall | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/.install/runall b/.install/runall deleted file mode 100755 index bbfe883..0000000 --- a/.install/runall +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" -DOTFILES_DIR="$(cd -- "$SCRIPT_DIR/.." && pwd)" - -noninteractive=0 -install_ohmyzsh=0 -install_vencord=0 - -while [[ $# -gt 0 ]]; do - case "$1" in - --noconfirm) - noninteractive=1 - shift - ;; - --with-ohmyzsh) - install_ohmyzsh=1 - shift - ;; - --with-vencord) - install_vencord=1 - shift - ;; - *) - echo "Unknown argument: $1" >&2 - echo "Usage: $0 [--noconfirm] [--with-ohmyzsh] [--with-vencord]" >&2 - exit 1 - ;; - esac -done - -if [[ "$noninteractive" -eq 1 ]]; then - "$SCRIPT_DIR/install" --noconfirm - "$SCRIPT_DIR/aur" --noconfirm -else - "$SCRIPT_DIR/install" - "$SCRIPT_DIR/aur" -fi - -"$SCRIPT_DIR/aetherfox" -"$SCRIPT_DIR/editor" - -if [[ "$install_ohmyzsh" -eq 1 ]]; then - if [[ -d "$HOME/.oh-my-zsh" ]]; then - echo "oh-my-zsh already installed at $HOME/.oh-my-zsh" - else - echo "Installing oh-my-zsh via git clone..." - git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git "$HOME/.oh-my-zsh" - fi -fi - -if [[ "$install_vencord" -eq 1 ]]; then - tmp_script="$(mktemp)" - trap 'rm -f "$tmp_script"' EXIT - - echo "Fetching Vencord installer script..." - curl -fsSL https://vencord.dev/install.sh -o "$tmp_script" - sh "$tmp_script" -fi - -"$SCRIPT_DIR/stowall" "$DOTFILES_DIR" |
