Update instructions to show nix run syntax

Users running via nix run don't have ./setup locally,
so show the full nix run command in output messages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 02:54:00 -05:00
parent 9868619890
commit 9b0c32bcc8

10
setup
View File

@@ -127,10 +127,10 @@ EOF
echo " cd $config_dir && git remote add origin <your-git-url> && git push -u origin main"
echo ""
echo " 2. On other devices, run:"
echo " ./setup <git-url> <age-key>"
echo " nix run 'git+https://git.qrty.ink/blu/grapho.git' -- <git-url> <age-key>"
echo ""
echo " 3. To pair mobile:"
echo " ./setup mobile"
echo " nix run 'git+https://git.qrty.ink/blu/grapho.git' -- mobile"
}
# =============================================================================
@@ -191,10 +191,10 @@ setup_join() {
echo "This device: ${device_id:0:20}..."
echo ""
echo "Add this device on your other machines:"
echo -e " ${BOLD}./setup add $device_id $(hostname)${NC}"
echo -e " ${BOLD}nix run 'git+https://git.qrty.ink/blu/grapho.git' -- add $device_id $(hostname)${NC}"
fi
echo ""
echo "To pair mobile: ./setup mobile"
echo "To pair mobile: nix run 'git+https://git.qrty.ink/blu/grapho.git' -- mobile"
echo "To sync: ./scripts/usync"
}
@@ -426,7 +426,7 @@ setup_mobile() {
echo ""
ok "Pairing complete! Devices should connect shortly."
else
warn "No ID entered. Run './setup mobile' to try again."
warn "No ID entered. Run 'mobile' option again to retry."
fi
}