niki/doc/mise.md

37 lines
947 B
Markdown
Raw Normal View History

2024-04-26 19:22:36 +00:00
# Getting Started
1.Installing the CLI <br>
2.Activating mise or adding its shims to PATH <br>
3.Adding tools to mise <br>
# Quick start
## 1. Install mise CLI
First we need to download the mise CLI.<br>
This directory is simply a suggestion. mise can be installed anywhere.
```shell
curl https://mise.jdx.dev/install.sh | sh
~/.local/bin/mise --version
mise 2024.x.x
```
## 2.Activate mise
Make sure you restart your shell session after modifying your rc file in order for it to take effect. <br>
```shell
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
```
then use this command
```shell
export MISE_GLOBAL_CONFIG_FILE=./config.toml
```
how use mise:
```shell
mise activate
mise install
mise current
mise ls
```
mise install -> Go Download 404: https://github.com/golang/go/issues/51255 :
```shell
mise settings set go_download_mirror "https://storage.googleapis.com/golang"
```
# Full Documentation
see https://mise.jdx.dev/