mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 18:53:37 +00:00
chore(scripts): update cargo install script
This commit is contained in:
@@ -2,17 +2,27 @@
|
|||||||
# Install cargo/rust packages.
|
# Install cargo/rust packages.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
|
source "$HOME/.dotfiles/config/exports"
|
||||||
|
source "$HOME/.dotfiles/config/alias"
|
||||||
|
source "$HOME/.dotfiles/config/functions"
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg "Starting to install rust/cargo packages"
|
msg "Starting to install rust/cargo packages"
|
||||||
|
|
||||||
! x-have cargo && {
|
! x-have cargo && {
|
||||||
msg "cargo could not be found. installing cargo with rustup.rs"
|
msg "cargo could not be found. installing cargo with rustup.rs"
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y
|
||||||
}
|
}
|
||||||
|
|
||||||
source "$CARGO_HOME/env"
|
source "$CARGO_HOME/env"
|
||||||
|
|
||||||
|
! x-have rustup && {
|
||||||
|
msg_err "rustup could not be found. Aborting..."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
rustup default system
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
# starship.rs
|
# starship.rs
|
||||||
"starship"
|
"starship"
|
||||||
|
|||||||
Reference in New Issue
Block a user