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

@@ -1,9 +0,0 @@
#
# direnv setup
#
zinit light-mode wait lucid from'gh-r' as'program' pick'direnv' \
mv'direnv* -> direnv' \
atclone'./direnv hook zsh > .zinitrc.zsh' atpull'%atclone' \
src='.zinitrc.zsh' \
for @direnv/direnv

View File

@@ -2,10 +2,10 @@
# fzf
#
export FZF_DEFAULT_OPTS="--bind=ctrl-k:kill-line --border=none --tabstop=4"
export FZF_TMUX_HEIGHT=100%
export FZF_TMUX=0
export FZF_CTRL_T_OPTS="--preview='less {}'"
export FZF_DEFAULT_OPTS="--bind=ctrl-k:kill-line --border=none --tabstop=4"
export FZF_TMUX=0
export FZF_TMUX_HEIGHT=100%
# Install fzf binary from latest GitHub Release.
zinit light-mode wait lucid from'gh-r' as'program' pick'fzf' \

View File

@@ -2,24 +2,9 @@
# Go (golang) environment setup.
#
#
# g - Simple go version manager, gluten-free
#
# Create symlink for "g" called "gv", as I have "g" aliased to "git".
zinit light-mode wait lucid as'program' pick'bin/g' from'gh' \
atclone'cd bin && ln -s g gv' atpull'%atclone' \
for @stefanmaric/g
#
# gup - Update binaries installed with "go install"
#
zinit light-mode wait lucid as'program' from'gh-r' pick'gup' \
for @nao1215/gup
#
# ==============================================================================
# global golang packages
#
# ==============================================================================
list_go_global_packages() {
for bin in $(ls -1 ~/.go/bin); do

View File

@@ -1,8 +0,0 @@
#
# jq
#
if ! command-exists jq; then
zinit light-mode wait lucid from'gh-r' as'program' mv'jq* -> jq' \
for @stedolan/jq
fi

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[@]}"
}

View File

@@ -2,20 +2,6 @@
# Python environment setup.
#
# ==============================================================================
# pyenv
# ==============================================================================
# install pyenv
zinit light-mode wait lucid as'program' pick'bin/pyenv' from'gh' \
atclone'src/configure && make -C src; libexec/pyenv init - > .zinitrc.zsh' \
atpull'%atclone' src'.zinitrc.zsh' nocompile'!' \
for @pyenv/pyenv
zinit light-mode wait lucid as'program' pick'plugins/python-build/bin/python-build' \
from'gh' id-as'pyenv/python-build' \
for @pyenv/pyenv
# ==============================================================================
# aliases
# ==============================================================================

View File

@@ -1,7 +0,0 @@
#
# Rclone
#
zinit light-mode wait lucid as'program' from'gh-r' mv'**/rclone -> rclone' \
atclone'./rclone genautocomplete zsh - > _rclone' atpull'%atclone' \
for @rclone/rclone

View File

@@ -8,8 +8,8 @@
# Install rbenv
zinit light-mode wait lucid as'program' pick'bin/rbenv' from'gh' \
atclone'src/configure && make -C src; libexec/rbenv init - > .zinitrc.zsh' \
atpull'%atclone' src'.zinitrc.zsh' nocompile'!' \
atclone'src/configure && make -C src; libexec/rbenv init - > .rbenv.zsh' \
atpull'%atclone' src'.rbenv.zsh' nocompile'!' \
for @rbenv/rbenv
# install ruby-build

View File

@@ -12,8 +12,8 @@ alias tmm="tmn -s main"
# Tmuxifier
zinit light-mode wait lucid as'program' pick'bin/tmuxifier' from'gh' \
atclone'./bin/tmuxifier init - > .zinitrc.zsh' atpull'%atclone' \
src='.zinitrc.zsh' \
atclone'./bin/tmuxifier init - > .tmuxifier.zsh' atpull'%atclone' \
src='.tmuxifier.zsh' \
for @jimeh/tmuxifier
alias m="tmuxifier"