mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:26:39 +00:00
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:
@@ -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[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user