mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 13:19:07 -07:00
Updates
This commit is contained in:
@@ -540,6 +540,21 @@ EOF
|
||||
fq)
|
||||
go install github.com/wader/fq@latest
|
||||
;;
|
||||
mise)
|
||||
if command -v brew >/dev/null 2>&1; then
|
||||
brew install mise
|
||||
else
|
||||
curl -sSL https://mise.jdx.dev/gpg-key.pub | gpg --import
|
||||
INSTALL_FILE_AND_SIG="${TMPDIR}/install.sh.sig"
|
||||
download "https://mise.jdx.dev/install.sh.sig" "${INSTALL_FILE_AND_SIG}"
|
||||
DECRYPTED_SCRIPT="${TMPDIR}/mise_install.sh"
|
||||
if gpg --assert-signer 24853EC9F655CE80B48E6C3A8B81C9D17413A06D --decrypt -o "${DECRYPTED_SCRIPT}" "${INSTALL_FILE_AND_SIG}" >/dev/null 2>&1; then
|
||||
sh "${DECRYPTED_SCRIPT}"
|
||||
else
|
||||
die "gpg verification or decryption failed for mise installer"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Unknown tool: ${TOOL}" >/dev/stderr
|
||||
list_tools
|
||||
|
||||
5
dotfiles/config/direnv/lib/mise.sh
Normal file
5
dotfiles/config/direnv/lib/mise.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
if command -v mise ; then
|
||||
use_mise() {
|
||||
eval "$(mise direnv activate)"
|
||||
}
|
||||
fi
|
||||
Reference in New Issue
Block a user