PATH="$PATH:$HOME/.cargo/bin"
hash -r
+# todo: this should happen in some kind of sandbox or vm
+
# install rust.
if type -t rustc &>/dev/null; then
rustup update
else
curl https://sh.rustup.rs -sSf | bash -s -- -y
fi
-# todo: update this. updates in rust are stupidly complicate
+
if ! which rg &>/dev/null; then
cargo install ripgrep
fi