-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6446781
commit aa774fe
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ if eq .chezmoi.os "linux" -}} | ||
{{ if eq .chezmoi.osRelease.idLike "debian" -}} | ||
{{ include "../install/ubuntu/common/mise.sh" }} | ||
{{ end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -Eeuo pipefail | ||
|
||
if [ "${DOTFILES_DEBUG:-}" ]; then | ||
set -x | ||
fi | ||
|
||
function install_mise() { | ||
apt update -y && apt install -y gpg sudo wget curl | ||
sudo install -dm 755 /etc/apt/keyrings | ||
wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | sudo tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null | ||
# TODO: support multi-arch | ||
echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.list | ||
sudo apt update | ||
sudo apt install -y mise | ||
} | ||
|
||
function uninstall_mise() { | ||
sudo apt remove -y mise | ||
} | ||
|
||
function main() { | ||
install_mise | ||
} | ||
|
||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | ||
main | ||
fi |