From 70a2041378c1779d12a3cd6fb30596a007f1ae33 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 2 Aug 2026 16:42:15 -0400 Subject: [PATCH] chore(utils): use mise in all distros and switch commit generator to LMC --- fish/dot-config/fish/functions/commit.fish | 4 ++-- install_utils | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/fish/dot-config/fish/functions/commit.fish b/fish/dot-config/fish/functions/commit.fish index 6f8f6fe..14e7ee8 100644 --- a/fish/dot-config/fish/functions/commit.fish +++ b/fish/dot-config/fish/functions/commit.fish @@ -1,3 +1,3 @@ -function commit -d 'Commit staged changes using Opencode' - opencode run Commit the staged changes with conventional style. +function commit -d 'Generate commit message for staged changes using LMC' + git diff --staged | lmc --new --git-message --stdin --model qwen3.6-35b-a3b end diff --git a/install_utils b/install_utils index 5e7bc18..f54741c 100755 --- a/install_utils +++ b/install_utils @@ -37,12 +37,13 @@ base_pkgs=( zoxide git-delta stow + mise ) # OS specific arrays mac_pkgs=("${base_pkgs[@]}" fd yazi) -arch_pkgs=("${base_pkgs[@]}" fd yazi ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono) -debian_pkgs=("${base_pkgs[@]}" fd-find extrepo) +arch_pkgs=("${base_pkgs[@]}" fd yazi ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono usage) +debian_pkgs=("${base_pkgs[@]}" fd-find) fedora_pkgs=("${base_pkgs[@]}" fd-find) case "$distro" in @@ -80,12 +81,16 @@ debian | ubuntu) log 'Installing packages with APT' sudo apt-get --quiet --yes update sudo apt-get --quiet --yes upgrade + sudo apt-get --quiet --yes install extrepo + sudo extrepo enable mise + sudo apt-get --quiet --yes update sudo apt-get --quiet --yes install "${debian_pkgs[@]}" ;; fedora | rhel | rocky | almalinux | centos) log 'Installing packages with DNF' - sudo dnf upgrade --assumeyes - sudo dnf install --assumeyes --skip-broken "${fedora_pkgs[@]}" + sudo dnf --assumeyes upgrade + sudo dnf --assumeyes copr enable jdxcode/mise + sudo dnf --assumeyes install --skip-broken "${fedora_pkgs[@]}" ;; *) echo 'Your OS is unsupported. Supported: Arch, Debian, Fedora, Mac (Brew)'