Skip to content

Commit

Permalink
chore: refactor setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Feb 19, 2025
1 parent 66afa1e commit ef4371a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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

0 comments on commit ef4371a

Please sign in to comment.