From 8f868ef5bb4f34417368da2676abf7a22f525c7b Mon Sep 17 00:00:00 2001 From: Typas Liao Date: Sat, 23 May 2026 19:02:30 +0800 Subject: [PATCH] feat(justfile): verify install recipes and align location defaults Every install recipe (python, go, julia, haskell, tex, typst, emacs, neovim) now runs a `--version` after the script. Recipes whose binary is rc-installed go through `bash -lc` so PATH picks up the new entry. Default `location` for tex/emacs/neovim is now `system` (matches the script's internal `${location:-system}` fallback) so the empty-string disconnect goes away. Co-Authored-By: Claude Opus 4.7 --- justfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 5ea3198..193eba5 100644 --- a/justfile +++ b/justfile @@ -96,42 +96,49 @@ modern: # Install uv (Python package manager) python: bash {{root}}/scripts/install-python.sh + bash -lc 'uv --version' # Install or update Go (use: just go, just go update) go action="install": bash {{root}}/scripts/install-go.sh {{action}} + bash -lc 'go version' # Install Julia via juliaup julia: bash {{root}}/scripts/install-julia.sh {{os}} + bash -lc 'julia --version' # Install Haskell via ghcup (with required system dependencies) haskell: bash {{root}}/scripts/install-haskell.sh {{os}} + bash -lc 'ghc --version' # Install LSP servers for available languages lsp: bash {{root}}/scripts/install-lsp.sh # Install or update TeX Live with LuaLaTeX + CJK (use: just tex, just tex update, just tex install home) -tex action="install" location="": +tex action="install" location="system": bash {{root}}/scripts/install-tex.sh {{os}} {{action}} {{location}} + bash -lc 'lualatex --version | head -1' # Install or update Typst (use: just typst, just typst update) typst action="install": bash {{root}}/scripts/install-typst.sh {{os}} {{action}} + typst --version # Comment out cicku.me mirrors in pacman mirrorlists (idempotent; CachyOS/arch-like only) pacman-mask-cicku: bash {{root}}/scripts/pacman-mask-cicku.sh {{os}} # Install or update Emacs (use: just emacs, just emacs update, just emacs install home) -emacs action="install" location="": +emacs action="install" location="system": bash {{root}}/scripts/install-emacs.sh {{os}} {{action}} {{location}} emacs --version # Install or update Neovim (use: just neovim, just neovim update, just neovim install home) -neovim action="install" location="": +neovim action="install" location="system": bash {{root}}/scripts/install-neovim.sh {{os}} {{action}} {{location}} + nvim --version | head -1 alias nvim := neovim