From ef4371aa15879f74111cae9d07bc9f1e59d659fa Mon Sep 17 00:00:00 2001 From: sripwoud Date: Wed, 19 Feb 2025 13:59:14 +0100 Subject: [PATCH] chore: refactor `setup` script --- setup | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/setup b/setup index db203aa..a6eba2c 100755 --- a/setup +++ b/setup @@ -13,14 +13,12 @@ log() { install_mise() { curl https://mise.run | sh mise activate - echo "✅ ${ORANGE}mise$RESET is installed" + echo "✅ Installed ${ORANGE}mise$RESET" } maybe_install_mise() { if ! command -v mise >/dev/null; then install_mise - else - log "✅ ${ORANGE}mise$RESET is already installed" fi } @@ -64,15 +62,14 @@ integrate_convco_with_git() { log "${RED}error: No editor found.$RESET" log "Please set the ${ORANGE}EDITOR$RESET environment variable to your preferred editor and run ${ORANGE}./setup$RESET again." fi - - log "✅ Integrated ${ORANGE}convco$RESET with git" } main() { maybe_install_mise - mise install + mise install &>/dev/null && log "✅ Installed dev tools and runtimes" integrate_convco_with_git hk install >/dev/null && log "✅ Configured git hooks" + bun i >/dev/null && log "✅ Installed node deps" } main