jdx / rtx

dev tools, env vars, task runner

Home Page:https://rtx.jdx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtx logo
Crates.io GitHub GitHub Workflow Status Discord

The front-end to your dev env.

What is it?

30 Second Demo

The following shows using rtx to install different versions of node. Note that calling which node gives us a real path to node, not a shim.

demo

Quickstart

Install rtx on macOS (other methods here):

$ curl https://rtx.jdx.dev/install.sh | sh
$ ~/.local/share/rtx/bin/rtx --version
rtx 2024.0.0

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

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

Install a runtime and set it as the global default:

$ rtx use --global node@20
$ node -v
v20.0.0

Full Documentation

See rtx.jdx.dev.

About

dev tools, env vars, task runner

https://rtx.jdx.dev

License:MIT License


Languages

Language:Rust 74.0%Language:Shell 24.6%Language:Dockerfile 0.5%Language:Just 0.4%Language:Nix 0.3%Language:Ruby 0.2%