rust
rust copied to clipboard
devcontainer configuration update
This commit changes the current setup but does not add or remove anything major.
- rename
setup.shtoscript.sh: If the file is namedsetup.shgithub uses that instead of using any user defined dotfile repo. In my case i have a dotfiles repo that adds my wakatime api key to wakatime config file. But due to the.devcontainer/setup.shfile, it gets ignored which is kinda bothersome. - Use the direct path to rustup and cargo in
script.sh: For some reason installing rustup does not immediately load the~/.cargo/bindirectory to path. Trying to source the.bashrc/.zshrcfile exits the setup file for some reason. ~~As such using the direct path to cargo and rustup works.~~ Re-exporting the PATH var after adding cargo bin dir works. - Use
cargo-binstall: For installing cargo-expand and cargo-edit, its faster to usecargo-binstall. cargo-binstall itself is easy to install using a one-liner shell script and installation of the cargo-plugins is also way faster as theres no need to compile the plugins - Change
.devcontainer.json: Nothing major in it. It just moves the settings and extensions property insidecustomizations.vscodecause the devcontainer extension just screams the warnings otherwise.
I have tried and tested the above configuration and have ensured it works. I've also considered replacing oh-my-zsh with oh-my-posh since features are nearly identical for both but oh-my-posh would work with other shells too in case necessary. But not sure wether that would be supported by the repo authors.