fix: fix mise tool installation
This commit is contained in:
parent
b517be3168
commit
867123079e
@ -1,7 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install mise-en-place
|
||||
# mise-en-place (https://mise.jdx.dev/)
|
||||
|
||||
if (command -v mise &>/dev/null); then
|
||||
# Install
|
||||
|
||||
if (! command -v mise &>/dev/null); then
|
||||
curl https://mise.run | sh
|
||||
fi
|
||||
|
||||
if (command -v mise &>/dev/null); then
|
||||
# Activate
|
||||
eval "$(mise activate bash)"
|
||||
mise settings set experimental true
|
||||
# Install some plugins
|
||||
(mise where usage &>/dev/null) || mise use -g usage # for completion
|
||||
# mise use -g cargo:ubi # to install binaries from Github release
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user