[Starship] Update install method, bugfixing, copy-editing #1183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed up for Uberspace today, explored things a bit and realized that the documented way to install Starship isn't working anymore. Taken this as an opportunity to contribute the below fixes:
cargo
install method => curl | shThe installation via cargo currently fails with the following errors:
The linked issue rust-lang/rust#44434 did not yield any immediate steps to fix the issue. And, by the looks of it, the installation via
cargo
also isn't documented on the project's website.I have therefore changed the guide to use the steps lined out on https://starship.rs/guide/#🚀-installation instead. Given the dangerousness of piping curl to sh I have also added a blurb on how to review the install script before it gets executed.
Fix for loading Starship upon login
The portion of the guide to load Starship upon login by adding a stanza to my
.bashrc
also didn't work for me on my fresh install, and resulted in the following error message:This is due to
.bashrc
being sourced in.bash_profile
before the PATH variable gets set. To rectify this, I have simply switched theeval
statement to use an absolute path instead.These two larger changes aside, I have made some small copy-editing changes and added a short section on what to do next with Starship. Given the updates, I have also added my name to the author's list. 😃
I haven't had the chance to run the linter yet, but will revisit once this PR exists.
@michi-zuri As the original author, I'd appreciate if you could take a 👀 at my proposed changes. Thanks!