feat: add config for chezmoi
This commit is contained in:
15
config.d/chezmoi.bash
Normal file
15
config.d/chezmoi.bash
Normal 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
|
@ -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
|
|
||||||
|
Reference in New Issue
Block a user