Commit Graph
69 Commits
Author SHA1 Message Date
alvinlollo f8bb57f666 Add pre-push gate, container smoke test, README docs; drop vendored gum.md
- hooks/pre-push: bash -n + shellcheck -S warning -e SC1090 on every
  tracked *.sh; fails closed when shellcheck is missing, bypassable with
  --no-verify; enable with 'git config core.hooksPath hooks' (documented)
- tests/smoke.sh: manual docker/podman Arch-container run of bat.sh,
  zsh.sh and fish.sh with assertions (idempotent bat config, timestamped
  zsh backups, fisher actually installed in fish); LazyVim.sh opt-in.
  This catches the inverted-condition/quoting class shellcheck cannot.
  fish.sh gains a SKIP_END4_SETUP=1 test hook to skip end-4's installer
- README: scripts table (documents installbeta.sh vs install.sh and why
  SecureBoot.sh is not in the menu), apt full-upgrade note, development
  section; claims audited against current behavior (gum wording already
  correct, no whiptail/selection claims remain)
- remove untracked vendored gum.md (reference only, per decision)
2026-10-08 14:19:32 +11:00
alvinlollo bca2dd45ba zsh.sh nits: backup rotation, guarded rm, --needed, drop dead placeholder
- timestamped .zshrc backups (was: .zshrc.bak overwritten every run, so
  only the latest pre-run state survived)
- only remove ~/.oh-my-zsh when it actually contains oh-my-zsh.sh; warn
  and leave anything else alone (was: unguarded rm -rf)
- add --needed to the pacman prerequisite install
- drop the empty ~/.fzf/shell/key-bindings.zsh placeholder (nothing
  sourced it; fzf integration comes from the oh-my-zsh plugin)
- LICENSE spelling in banners (zsh.sh, installbeta.sh)
2026-10-08 14:16:37 +11:00
alvinlollo a012aeab9c installbeta.sh UX: docker group notice, drop fake command echoes and sleeps
- print a 'log out and back in' notice after usermod -aG docker (both
  fresh-install and already-installed branches; previously missing)
- remove the unexplained sleep 10 in the already-installed docker branch
- remove 'echo "+ sleep 10" && sleep 10' fake-command lines in failure
  branches (record_failure already reports the failure)
- affinity keeps its 10s read-the-instructions delay but announces it
  honestly instead of echoing a fake '+ 10 sleep' command
2026-10-08 14:15:00 +11:00
alvinlollo 23915c301a Strict mode from the start, contextual errors, non-zero exit in installbeta.sh
- set -Eeuo pipefail at the top (was only enabled after the menu, so
  package installs and shelly bootstrap ran unchecked); preamble audited
  for guarded vs unguarded commands ([ -t 1 ] && ... became an if, clear
  is now 'clear || true')
- error_handler now reports exit status, line number and the failing
  command, and the ERR trap is installed after strict mode so preamble
  failures abort instead of printing a message and continuing
- exit 1 when any step was recorded as failed (was: always exit 0)
- single STAMP shared by LOG and REPORT; both created via mktemp
  (predictable /tmp log names + tee -a was the same symlink class)
- local script/config fallbacks resolved via BASH_SOURCE (SCRIPT_DIR),
  not the caller's CWD; falls back to remote fetch when piped
- $? captured via rc=$? inside each failure branch (idempotent under
  reordering) for all record_failure call sites
- ${1:-} for the flag check, ${SHELL:-} in the fish detection,
  tty-guarded fish warning prompt
2026-10-08 14:13:57 +11:00
alvinlollo 0d605940b4 Harden installbeta.sh: temp workspace, curl -f, gum menu fallback
- mktemp -d workspace (trap-cleaned) for the shelly AUR clone, shelly toml
  downloads, docker installer and affinity script - no more predictable
  /tmp/shelly_install, /tmp/shelly-standard.toml, /tmp/shelly-aur.toml
- download get.docker.sh and AffinityLinuxInstaller.py with curl -fsSL to a
  file instead of piping to sh/python3 (the python pipe was missing -f, so an
  HTTP 404 body was executed as Python)
- plain numbered menu fallback when gum is unavailable (Fedora has neither
  shelly nor apt, so gum was never installed and 'gum choose' failed with a
  misleading 'User cancelled installation.')
- $? capture via rc=$? inside the failure branch (safe under reordering)
2026-10-08 14:10:43 +11:00
alvinlollo 696badb67a Fix LazyVim.sh shell branches, backups, and nvm detection
- swap the crossed branch tests (fish branch checked ~/.bashrc, bash branch
  checked ~/.config/fish/config.fish - each never matched its shell)
- install fisher/nvm.fish via 'fish -c' instead of calling fisher from bash
- timestamped backups (nvim.bak-YYYYmmdd-HHMMSS) instead of rm -rf of all
  *.bak dirs first - a re-run no longer destroys the original backup
- check git clone result and point at the preserved backup on failure
- load nvm by sourcing its init script (nvm is a function; 'command -v nvm'
  never succeeded, so the whole block was dead code)
- guard nvm init sourcing under set +u, fall back to system nodejs
- idempotent rc appends (grep guard), tty-guarded Ctrl+C grace period
- set -euo pipefail with guarded/unguarded audit
- typos: prerequisites, secconds
2026-10-08 14:08:20 +11:00
alvinlollo 99d94ab615 Fix fish.sh prerequisites, fisher install, and CWD-dependent paths
- prerequisite condition tested fish (was inverted: 'zsh missing and
  git/curl/fzf present', so fish was never installed on a working machine)
- run fisher bootstrap inside fish via 'fish -c' (was: 'curl | source' in
  bash, which always failed with 'filename argument required')
- download fisher.fish with curl -fsSL to a temp file first (fail on HTTP error)
- resolve configs/ via BASH_SOURCE; when piped (curl | bash) fall back to
  the end-4 clone instead of failing on relative paths from an arbitrary CWD
- clone dots-hyprland into mktemp -d, never into the caller's CWD; git -C
  style usage so a failed pull can't strand the script's working directory
- set -euo pipefail from the top with a guarded/unguarded audit
- warn visibly that end-4 still runs with --force --skip-backup (kept per decision)
- mkdir -p before config copies; tty-guarded fish warning; ${1:-}
2026-10-08 14:06:51 +11:00
alvinlollo 49e00110bf Fix bat.sh config target, theme name, MANPAGER quoting, shell detection
- set -euo pipefail with audit: every tolerated failure is guarded
- write --theme to bat's config file, not into the themes/ directory (was: append to a directory, failed silently)
- download and configure the same theme (Catppuccin Mocha; was: Macchiato downloaded, Mocha configured)
- preserve MANPAGER quoting via printf (was: collapsed to export MANPAGER=bat -plman, invalid when sourced)
- detect shell via $SHELL instead of $0 (was: always matched *) and reported 'Unsupported shell: bat.sh')
- fish branch appends fish syntax, no more exec of a mangled command string
- check pacman/apt bat install results (was: unchecked, continued on failure)
- idempotent appends (grep guard), tty-guarded fish warning
- remove broken rc-sourcing block (sourced .zshrc/config.fish from bash)
2026-10-08 14:04:49 +11:00
alvinlollo e215b85d90 Harden SecureBoot.sh: UEFI check, verify paths, confirm before enroll
- set -euo pipefail and fix pacman --noconfirm typo (was -noconfirm)
- abort on non-UEFI systems (/sys/firmware/efi check)
- verify sbctl installed and sign targets exist before touching keys
- fix x84_64-efi typo, skip missing targets instead of failing silently
- require sbctl verify to pass before offering enrollment
- prompt y/N before enroll-keys with BIOS/USB recovery guidance
- gate success message on final sbctl verify, non-zero exit on failure
2026-10-08 14:03:31 +11:00
alvinlollo a38a007ce3 Migrate menu from whiptail to gum with label-based dispatch 2026-10-08 14:02:43 +11:00
alvinlollo 9e190e3e75 Fix zsh.sh install logic and backups 2026-10-05 22:14:44 +11:00
alvinlollo a9b7e698b9 Check apt and pacman install failures in bat script 2026-09-30 14:34:26 +10:00
alvinlollo 410537e246 Split optional apt packages and check install failures in LazyVim script 2026-09-30 14:34:25 +10:00
alvinlollo 1d89333407 Add apt support to LazyVim script 2026-09-30 13:36:17 +10:00
alvinlollo 290c747a10 Fix bat script apt and pacman dependency install 2026-09-30 13:29:21 +10:00
alvinlollo 9049b0fc4b Fix remote script dump, add whiptail bash-not-fish warning 2026-09-23 22:57:40 +10:00
alvinlollo bd83ffd2b9 Redundant fixed upstream 2026-09-13 23:02:10 +10:00
alvinlollo 743cb24073 Remove unused files 2026-08-10 21:21:54 +10:00
alvinlollo e57bc7e5c8 Reorganise 2026-08-10 17:23:13 +10:00
alvinlollo c748bfe210 Add bat script 2026-08-10 16:07:00 +10:00
alvinlollo 622d6f5ace Use shelly instead of pacman 2026-08-10 12:17:54 +10:00
alvinlollo f380ff8824 Update configs 2026-07-23 14:25:05 +10:00
alvinlollo f71c4c3816 Install nvm fish plugin properly and reload 2026-07-19 21:18:23 +10:00
alvinlollo 5d2c403f3d Add NVM LTS install 2026-07-17 19:54:04 +10:00
alvinlollo fc5eb7a943 Add fisher plugin manager 2026-07-17 19:49:07 +10:00
alvinlollo 0112c73e02 Indent 2026-07-17 19:48:33 +10:00
alvinlollo 7541db9354 Update hyprland config 2026-07-17 18:38:15 +10:00
alvinlollo 20dfacce3e Update hyprland config 2026-07-17 18:35:31 +10:00
alvinlollo 3020201a9d Add more depenencies and remove gdoc.vim 2026-07-12 18:00:55 +10:00
alvinlollo c4c26404b1 Add bat install with catppucchin 2026-07-12 17:51:32 +10:00
alvinlollo 663f18d4f7 Merge remote-tracking branch 2026-07-12 14:32:43 +10:00
alvinlollo 9dfcfcce07 Fix no monitor function added 2026-06-21 12:26:34 +10:00
alvinlollo fcd61b1ee9 Fix monitor patch 2026-06-20 23:19:12 +10:00
alvinlollo 8d0f64d305 Add fish shell install and config 2026-06-20 23:13:24 +10:00
alvinlollo 30cc51cb2f Add fix for nwg displays 2026-06-20 23:12:22 +10:00
alvinlollo 75a29f8d47 Made beta version stable 2026-05-08 21:26:41 +10:00
alvinlollo 3d4731e61e Added fish shell config 2026-05-08 21:21:33 +10:00
alvinlollo 0d8a50e8bd Added ghostty intergration 2026-05-03 22:08:45 +10:00
alvinlollo 8ae028f1c7 Merge branch 'main' of github.com:alvinlollo/Single-install-script 2026-04-15 20:06:02 +10:00
alvinlollo e3ed7c31d9 Added homebrew 2026-04-15 20:05:36 +10:00
alvinlollo 4aed5cbd3f Merge branch 'main' of github.com:alvinlollo/Single-install-script 2026-03-31 07:29:39 +11:00
alvinlollo 71984cde3c Added affinity install with GUI by ryzendew 2026-03-31 07:29:19 +11:00
alvinlollo d9874ec3ba Fix syntax 2026-03-25 17:49:27 +11:00
alvinlollo 2cb8ff537a Added home directory paths 2026-03-24 21:29:32 +11:00
alvinlollo c497927ba6 Add rpi-imager config 2026-03-24 21:26:16 +11:00
alvinlollo db7e57b91f Merge branch 'main' of github.com:alvinlollo/Single-install-script 2026-03-21 17:02:42 +11:00
alvinlollo 57d576b1dc Add sudoloop to yay and seperated it 2026-03-21 17:00:56 +11:00
alvinlollo 8307e84c27 Add more update functions to zsh 2026-03-07 16:10:41 +11:00
alvinlollo 12441a025e Update config 2026-03-07 15:53:18 +11:00
alvinlollo 9a3935f274 Add OMZ update command 2026-02-20 21:29:01 +11:00
alvinlollo febac68529 Update config 2026-02-20 16:14:42 +11:00
alvinlollo 26bf8d530d Update config 2026-02-20 15:57:01 +11:00
alvinlollo 4d92101305 Update config 2026-02-10 18:55:13 +11:00
alvinlollo aab06b8d8d Fix LazyVim.sh script 2026-02-01 18:56:00 +11:00
alvinlollo 3910c42b73 Fix LazyVim.sh script 2026-02-01 18:54:56 +11:00
alvinlollo 9bc4082e02 Update configs 2026-01-21 17:57:40 -08:00
alvinlollo 91532be9f6 Update configs 2026-01-21 17:25:20 -08:00
alvinlollo cbfa10d666 Make installbeta main version 2026-01-21 16:43:29 -08:00
alvinlollo 6b59a46ea0 Fix syntax 2026-01-21 16:37:05 -08:00
alvinlollo 9e456e9877 Fix directory ending up in /tmp 2026-01-21 16:27:21 -08:00
alvinlollo 3a139a3563 Run local scripts first before using from github 2026-01-21 16:19:05 -08:00
alvinlollo fd6f3f5b37 Add guardrails and remove gdoc.vim 2026-01-21 14:51:50 -08:00
alvinlollo e98df34f7c Add comments, guardrails and --skip-watermark flag 2026-01-21 14:43:33 -08:00
alvinlollo 83cdf7f2b4 Add Disclaimer 2026-01-21 13:42:35 -08:00
alvinlollo 560b7db312 Moved Hyprland dotfiles into config folder 2026-01-14 00:06:03 -08:00
alvinlollo f575ad52f4 Added removed moved dot files 2026-01-14 00:03:10 -08:00
Alvin Vilaythong a9e213a1eb Fix bugs 2025-11-12 11:23:23 +11:00
Alvin Vilaythong 3e45cfb170 Create installbeta.sh 2025-11-12 11:12:54 +11:00
Alvin Vilaythong 8eb6627d4d Make all scripts executible 2025-11-12 07:33:51 +11:00