Rust examples
OS:
macOS
, $SHELL:fish
~$ git clone https://github.com/rust-lang/rustup.rs.git $TMPDIR/rustup
~$ cd $TMPDIR/rustup
~$ env RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup" ./rustup-init.sh --no-modify-path -y
~$ echo 'set -g fish_user_paths "$HOME/.cargo/bin" $fish_user_paths' > ~/.config/fish/conf.d/rust.fish
~$ source ~/.config/fish/conf.d/rust.fish
~$ rustup self update
~$ rustup update
~$ rustup component add rust-src
~$ rustup component add rust-docs
~$ mkdir -p ~/.config/fish/completions
~$ rustup completions fish > ~/.config/fish/completions/rust.fish
~$ source ~/.config/fish/completions/rust.fish
~$ rm ~/.config/fish/completions/rust* ~/.config/fish/conf.d/rust*
~$ rm -rf ~/.cargo ~/.rustup
~$ tree ~/.cargo/bin/
├── cargo
├── cargo-clippy
├── cargo-fmt
├── rls
├── rust-gdb
├── rust-lldb
├── rustc
├── rustdoc
├── rustfmt
└── rustup
0 directories, 10 files