change nvm to rtx

This commit is contained in:
Alexander Navarro 2023-06-11 19:05:05 -04:00
parent 23dc5489a1
commit cad6118609
4 changed files with 2702 additions and 14 deletions

8
config/rtx/config.toml Normal file
View file

@ -0,0 +1,8 @@
[tools]
node = 'lts'
# python = {version='3', virtualenv='.venv'}
[settings]
[alias.node]
my_custom_node = '20' # makes `rtx install node@my_custom_node` install node-20.x
# this can also be specified in a plugin (see below in "Aliases")

2692
config/zsh/completions/_rtx Normal file

File diff suppressed because it is too large Load diff

View file

@ -11,11 +11,9 @@ export VISUAL="$EDITOR"
export QT_STYLE_OVERRIDE=kvantum export QT_STYLE_OVERRIDE=kvantum
# Dev Stuff # Dev Stuff
export PYENV_ROOT="$HOME/.pyenv"
export NPM_PACKAGES="$HOME/.npm-packages" export NPM_PACKAGES="$HOME/.npm-packages"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules${NODE_PATH:+:$NODE_PATH}" export NODE_PATH="$NPM_PACKAGES/lib/node_modules${NODE_PATH:+:$NODE_PATH}"
export PNPM_HOME="$HOME/.local/share/pnpm" export PNPM_HOME="$HOME/.local/share/pnpm"
export NVM_DIR="$HOME/.nvm"
# Unset manpath so we can inherit from /etc/manpath via the `manpath` # Unset manpath so we can inherit from /etc/manpath via the `manpath`
# command # command
@ -31,10 +29,6 @@ update_path "$DOTS/scripts"
update_path "$HOME/bin" update_path "$HOME/bin"
update_path "$NPM_PACKAGES/bin" update_path "$NPM_PACKAGES/bin"
update_path "$PNPM_HOME" update_path "$PNPM_HOME"
update_path "$PYENV_ROOT/bin" update_path "$HOME/.local/share/rtx/shims"
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
eval "$(pyenv init --path)"
tmux new-session -d "default"

View file

@ -44,16 +44,12 @@ ZSH_ALIAS_FINDER_AUTOMATIC=true
# Plugin Config # # Plugin Config #
#--------------------------------------------------------------------# #--------------------------------------------------------------------#
# Lazy load nvm, increasy startup time a lot.
zstyle ':omz:plugins:nvm' lazy true
# VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true # VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
# VI_MODE_SET_CURSOR=true # VI_MODE_SET_CURSOR=true
ZSHZ_TILDE=1 ZSHZ_TILDE=1
plugins=( plugins=(
nvm
alias-finder alias-finder
# archlinux # archlinux
bgnotify bgnotify
@ -112,7 +108,5 @@ if [[ "$ZPROF" = true ]]; then
zprof zprof
fi fi
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
eval "$(starship init zsh)" eval "$(starship init zsh)"
eval "$(rtx activate zsh)"