File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,31 @@ if cmd_exists mise; then
1414 fmt_ok " mise already installed ($( mise --version) )"
1515else
1616 fmt_install " mise"
17- curl https://mise.run | sh
1817
19- # Add mise to PATH for this session
20- export PATH=" $HOME /.local/bin:$PATH "
18+ case " $OS " in
19+ macos)
20+ brew install mise
21+ ;;
22+ ubuntu)
23+ sudo install -dm 755 /etc/apt/keyrings
24+ curl -fSs https://mise.jdx.dev/gpg-key.pub | sudo tee /etc/apt/keyrings/mise-archive-keyring.asc 1> /dev/null
25+ echo " deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.asc] https://mise.jdx.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.list
26+ sudo apt-get update -qq
27+ sudo apt-get install -y -qq mise
28+ ;;
29+ arch)
30+ echo " ERROR: mise is expected to be pre-installed on Arch/Omarchy but was not found."
31+ exit 1
32+ ;;
33+ esac
2134fi
2235
2336# Ensure mise is activated in ~/.zshrc
2437if [ ! -f " $HOME /.zshrc" ]; then
2538 touch " $HOME /.zshrc"
2639fi
2740
28- if ! grep -qF " mise activate" " $HOME /.zshrc" ; then
41+ if ! grep -qF " mise activate" " $HOME /.zshrc" 2> /dev/null ; then
2942 {
3043 echo " "
3144 echo " # mise version manager"
You can’t perform that action at this time.
0 commit comments