Skip to content

Commit

Permalink
Install mise
Browse files Browse the repository at this point in the history
Issue: #81
  • Loading branch information
scottmuc committed Sep 14, 2024
1 parent 2da99c9 commit fc30eb7
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion devices/frodo/coalesce_this_machine
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ main() {
install_python_dependencies
install_1password_cli "2.12.0"
install_all_things_docker
install_mise
install_mods
install_obsidian
install_vivaldi
Expand Down Expand Up @@ -56,6 +57,26 @@ symlink_all_the_things() {
}


install_mise() {
if command -v mise &> /dev/null; then
echo "mise exists: $(mise --version)"
return
fi

local keyring_path="/usr/share/keyrings/mise.gpg"
curl -fsSL https://mise.jdx.dev/gpg-key.pub \
| sudo gpg --dearmor -o "${keyring_path}"
sudo chmod a+r "${keyring_path}"

echo \
deb [arch="$(dpkg --print-architecture)" signed-by="${keyring_path}"] \
https://mise.jdx.dev/deb stable main | sudo tee /etc/apt/sources.list.d/mise.list > /dev/null

sudo apt update
sudo apt install mise -y
}


install_asdf() {
if command -v asdf >/dev/null; then
echo "asdf exists: $(asdf --version)"
Expand Down Expand Up @@ -151,7 +172,6 @@ install_vivaldi() {
fi

local keyring_path="/usr/share/keyrings/vivaldi.gpg"
set -x
curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub \
| sudo gpg --dearmor -o "${keyring_path}"
sudo chmod a+r "${keyring_path}"
Expand Down

0 comments on commit fc30eb7

Please sign in to comment.