Files
Dot-Zsh/Commands/Setup/mod.just
2026-06-01 12:12:41 +01:00

24 lines
579 B
Plaintext

project_root := justfile_directory()
scripts_dir := project_root + "/Scripts"
# Run the full setup flow.
all:
bash '{{scripts_dir}}/setup.sh'
# Install the base system layer only.
base:
bash '{{scripts_dir}}/base.sh'
# Stow shell files into $HOME.
stow:
stow --dir='{{project_root}}' Zsh --target="$HOME"
# Remove stowed shell files from $HOME.
clean:
stow --dir='{{project_root}}' -D Zsh --target="$HOME"
# Pull latest changes and rerun setup.
update:
git -C '{{project_root}}' pull origin main
just --justfile '{{project_root}}/Justfile' setup all