This is a rough guide:
Install if needed
if [ ! -d ~/.cargo ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
Sccache
sudo apt-get install -y libssl-dev pkg-config # for sccache
cargo install sccache
# enable sccache wrapper (cargo.stuff does this)
cargo.stuff
[ ! -d ~/.cargo ] && return # do nothing unless rust is installed
.if "$HOME/.cargo/env"
if [ -x "$(which sccache)" ]; then
export RUSTC_WRAPPER=$(which sccache)
fi
alias cargoi='cargo install'
pathif -a "$HOME/.local/share/bob/nvim-bin" # append to path if this exists
alias rustbook='rustup docs --book'
various things to install
Usual stuff
cargo install coreutils
cargo install bat
cargo install bob-nvim
cargo install ripgrep
cargo install tree-sitter-cli
Other stuff
cargoi coreutils #
cargoi starship # cross-shell advanced prompt
cargoi exa # ls replacement
cargoi du-dust # du replacement
cargoi bat # cat replacement
cargoi zellij #
cargoi mprocs #
cargoi ripgrep # grep replacement
cargoi bob-nvim # nvim version manager
cargoi gitui #
cargoi irust # ipython-like interactive
cargoi evcxr_jupyter #
cargoi bacon #
cargoi cargo-info #
cargoi porsmo #
cargoi wiki-tui # wikipedia without a browser
cargoi rtx-cli #
cargoi rust-analyzer #
cargoi nu # modern shell