if which rustup > /dev/null; then
  rustup self update
else
  curl https://sh.rustup.rs -sSf -m 60 | sh -s -- --no-modify-path -y -v --default-toolchain nightly
fi

~/.cargo/bin/rustup -v toolchain install nightly
~/.cargo/bin/rustup update

function rust_install {
  [[ -e ~/.cargo/bin/$2 ]] || ~/.cargo/bin/rustup run nightly cargo install --quiet $1
}

rust_install bat bat
rust_install cargo-deb cargo-deb
rust_install cargo-edit cargo-add
rust_install cargo-info cargo-info
rust_install cargo-outdated cargo-outdated
rust_install cargo-install-update cargo-install-update
rust_install fd-find fd
rust_install hyperfine hyperfine
rust_install loop loop-rs
rust_install miniserve miniserve
rust_install ripgrep rg
rust_install shellharden shellharden
rust_install tokei tokei
rust_install xsv xsv

rustup run nightly cargo install-update --all

python $(dirname $0:A)/link-manpages.py

if which rustup > /dev/null; then
  rustup self update
else
  curl https://sh.rustup.rs -sSf -m 60 | sh -s -- --no-modify-path -y -v
fi

~/.cargo/bin/rustup -v toolchain install nightly
~/.cargo/bin/rustup update

function rust_install {
  [[ -e ~/.cargo/bin/$2 ]] || ~/.cargo/bin/rustup run nightly cargo install --quiet $1
}

rust_install bat bat
rust_install cargo-deb cargo-deb
rust_install cargo-edit cargo-add
rust_install cargo-info cargo-info
rust_install cargo-outdated cargo-outdated
rust_install cargo-install-update cargo-install-update
rust_install fd-find fd
rust_install hyperfine hyperfine
rust_install loop loop-rs
rust_install miniserve miniserve
rust_install ripgrep rg
rust_install shellharden shellharden
rust_install tokei tokei
rust_install xsv xsv

rustup run nightly cargo install-update --all

python $(dirname $0:A)/link-manpages.py

--- 
+++ 
@@ -1,7 +1,7 @@
 if which rustup > /dev/null; then
   rustup self update
 else
-  curl https://sh.rustup.rs -sSf -m 60 | sh -s -- --no-modify-path -y -v --default-toolchain nightly
+  curl https://sh.rustup.rs -sSf -m 60 | sh -s -- --no-modify-path -y -v
 fi
 
 ~/.cargo/bin/rustup -v toolchain install nightly
Install Rust nightly by default
