From 8f023d4c69e2a3d56c7b637429bcad744c5eff37 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Tue, 29 Jul 2025 16:46:01 +0200 Subject: [PATCH] feat(mise): add new version manager --- bashrc | 5 +++++ config/fish/config.fish | 5 +++++ config/mise/mise.toml | 0 private | 2 +- setup.sh | 4 ++++ zshrc | 6 ++++++ 6 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 config/mise/mise.toml diff --git a/bashrc b/bashrc index d9b8272..ebd7b28 100644 --- a/bashrc +++ b/bashrc @@ -25,6 +25,11 @@ if command -v brew >/dev/null 2>&1 && [ -f "$(brew --prefix asdf)/libexec/asdf.s source "$(brew --prefix asdf)/libexec/asdf.sh" fi +# Mise +if command -v mise >/dev/null 2>&1; then + eval "$($HOME/.local/bin/mise activate bash)" +fi + # GitHub CLI completion if command -v gh >/dev/null 2>&1; then eval "$(gh completion -s bash)" diff --git a/config/fish/config.fish b/config/fish/config.fish index 5bff55f..aef5f55 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -140,6 +140,11 @@ if command -v gh >/dev/null 2>&1 eval "$(gh completion -s fish)" end +# Mise +if command -v mise >/dev/null 2>&1 + $HOME/.local/bin/mise activate fish | source +end + # fzf fzf --fish | source diff --git a/config/mise/mise.toml b/config/mise/mise.toml new file mode 100644 index 0000000..e69de29 diff --git a/private b/private index 3653c04..dc1baec 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 3653c04d4ea9c9a845ccacc5b3d243f81f6d2ed3 +Subproject commit dc1baec8310ec2c76c64bbec2c8cd256c4d33c08 diff --git a/setup.sh b/setup.sh index 6569c36..de6d31d 100755 --- a/setup.sh +++ b/setup.sh @@ -124,6 +124,10 @@ gpgconf --kill gpg-agent gpg-agent --daemon ./bin/gpg-keys-restore +# Install mise and mise versions +curl https://mise.run | sh +./private/mise/init.sh + # Install asdf versions ./private/asdf/init.sh asdf reshim diff --git a/zshrc b/zshrc index a73bce9..e79f142 100644 --- a/zshrc +++ b/zshrc @@ -24,6 +24,11 @@ if command -v brew &>/dev/null && [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ] fi fi +# Mise +if command -v mise &>/dev/null; then + eval "$($HOME/.local/bin/mise activate zsh)" +fi + # GitHub CLI completion if command -v gh &>/dev/null; then eval "$(gh completion -s zsh)" @@ -68,3 +73,4 @@ source "$HOME/.aliases" for file in ~/.functions/*.sh; do source "$file" done +