feat: add config for chezmoi

This commit is contained in:
2025-06-24 01:08:12 +02:00
parent 3aeb0650c4
commit 223555c852
2 changed files with 17 additions and 10 deletions

15
config.d/chezmoi.bash Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Configuration for chezmoi
# git_repo="https://github.com/AstroNvim/template"
# git_branch="main"
git_repo="https://gitea.cloud.logerais.com/xavier/config-chezmoi.git"
git_branch="main"
if (command -v chezmoi); then
chezmoi init https://gitea.cloud.logerais.com/xavier/config-chezmoi.git
chezmoi apply ~/.config/mise
mise install
fi

View File

@ -15,15 +15,7 @@ test -x ~/.local/bin/mise && eval "$(~/.local/bin/mise activate bash)"
# Configure mise # Configure mise
# #
mise settings set experimental true mise settings set experimental true
(mise where usage &>/dev/null) || mise use -g usage # for completion
(mise where &>/dev/null) || mise use -g usage # for completion
# Install some essential tools # Install some essential tools
if (command -v mise &>/dev/null); then
# Install some plugins
(mise where usage &>/dev/null) || mise use -g usage # for completion (mise where usage &>/dev/null) || mise use -g usage # for completion
(mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles (mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles
# mise use -g cargo:ubi # to install binaries from Github release
fi