refactor: use rtx to manage Go, Python, NodeJS, and more

This means g, pyenv, and volta are gone. And a lot of other tools
previously installed with zinit are also installed with rtx now instead.

This includes starship, direnv, shfmt, jq, and more.
This commit is contained in:
2023-03-09 23:06:47 +00:00
parent 885fd26901
commit 664f06bbdb
15 changed files with 75 additions and 170 deletions

View File

@@ -2,31 +2,11 @@
# Node.js environment setup.
#
# ==============================================================================
# Volta
# ==============================================================================
zinit light-mode wait lucid as'program' from'gh-r' \
atclone'./volta completions zsh > _volta' atpull'%atclone' \
for @volta-cli/volta
# ==============================================================================
# aliases
# ==============================================================================
alias no="node"
alias np="npm"
# ==============================================================================
# global node packages
# ==============================================================================
install_node_global_packages() {
local volta_packages=(
npm
npx
yarn
)
local npm_packages=(
@commitlint/cli
@commitlint/config-conventional
@@ -57,7 +37,8 @@ install_node_global_packages() {
vscode-css-languageserver-bin
vscode-json-languageserver
yaml-language-server
yarn
)
volta install "${volta_packages[@]}" "${npm_packages[@]}"
npm install -g "${npm_packages[@]}"
}