Skip to content

Instantly share code, notes, and snippets.

@Lincyaw
Created June 17, 2024 04:21
Show Gist options
  • Save Lincyaw/4462dd360d2aeccc62c472163bfaa976 to your computer and use it in GitHub Desktop.
Save Lincyaw/4462dd360d2aeccc62c472163bfaa976 to your computer and use it in GitHub Desktop.
开发环境配置

Mise

开发工具的包管理 https://github.com/jdx/mise

$ curl https://mise.run | sh
$ ~/.local/bin/mise --version
mise 2024.6.4

# Hook mise into your shell (pick the right one for your shell):

# note this assumes mise is located at ~/.local/bin/mise
# which is what https://mise.run does by default
$ echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
$ echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
$ echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish


# Install a runtime and set it as the global default:
$ mise use --global node@20
$ node -v
v20.0.0

Pdm python 包管理工具

https://pdm-project.org/en/latest/usage/dependency/

curl -sSLO https://pdm-project.org/install-pdm.py
curl -sSL https://pdm-project.org/install-pdm.py.sha256 | shasum -a 256 -c -
# Run the installer
python3 install-pdm.py [options]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment