diff --git a/config.d/chezmoi.bash b/config.d/chezmoi.bash new file mode 100644 index 0000000..65f4b46 --- /dev/null +++ b/config.d/chezmoi.bash @@ -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 diff --git a/tools.d/mise.bash b/tools.d/mise.bash index da01130..c65a3ed 100644 --- a/tools.d/mise.bash +++ b/tools.d/mise.bash @@ -15,15 +15,7 @@ test -x ~/.local/bin/mise && eval "$(~/.local/bin/mise activate bash)" # Configure mise # 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 -if (command -v mise &>/dev/null); then - # Install some plugins - (mise where usage &>/dev/null) || mise use -g usage # for completion - - (mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles - - # mise use -g cargo:ubi # to install binaries from Github release -fi +(mise where usage &>/dev/null) || mise use -g usage # for completion +(mise where chezmoi &>/dev/null) || mise use -g chezmoi # to manage dotfiles