mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-08-31 14:49:37 +00:00
chore(utils): use mise in all distros and switch commit generator to LMC
This commit is contained in:
parent
2fda7c2621
commit
70a2041378
2 changed files with 11 additions and 6 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
function commit -d 'Commit staged changes using Opencode'
|
function commit -d 'Generate commit message for staged changes using LMC'
|
||||||
opencode run Commit the staged changes with conventional style.
|
git diff --staged | lmc --new --git-message --stdin --model qwen3.6-35b-a3b
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,13 @@ base_pkgs=(
|
||||||
zoxide
|
zoxide
|
||||||
git-delta
|
git-delta
|
||||||
stow
|
stow
|
||||||
|
mise
|
||||||
)
|
)
|
||||||
|
|
||||||
# OS specific arrays
|
# OS specific arrays
|
||||||
mac_pkgs=("${base_pkgs[@]}" fd yazi)
|
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)
|
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 extrepo)
|
debian_pkgs=("${base_pkgs[@]}" fd-find)
|
||||||
fedora_pkgs=("${base_pkgs[@]}" fd-find)
|
fedora_pkgs=("${base_pkgs[@]}" fd-find)
|
||||||
|
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
|
|
@ -80,12 +81,16 @@ debian | ubuntu)
|
||||||
log 'Installing packages with APT'
|
log 'Installing packages with APT'
|
||||||
sudo apt-get --quiet --yes update
|
sudo apt-get --quiet --yes update
|
||||||
sudo apt-get --quiet --yes upgrade
|
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[@]}"
|
sudo apt-get --quiet --yes install "${debian_pkgs[@]}"
|
||||||
;;
|
;;
|
||||||
fedora | rhel | rocky | almalinux | centos)
|
fedora | rhel | rocky | almalinux | centos)
|
||||||
log 'Installing packages with DNF'
|
log 'Installing packages with DNF'
|
||||||
sudo dnf upgrade --assumeyes
|
sudo dnf --assumeyes upgrade
|
||||||
sudo dnf install --assumeyes --skip-broken "${fedora_pkgs[@]}"
|
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)'
|
echo 'Your OS is unsupported. Supported: Arch, Debian, Fedora, Mac (Brew)'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue