2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
source env.zsh
|
|
|
|
|
|
|
|
install() {
|
|
|
|
case $(_os) in
|
2018-02-17 00:03:36 -08:00
|
|
|
macos) brew install rustup ;;
|
2018-05-24 12:35:12 -07:00
|
|
|
arch) yay --needed --noconfirm -S rustup ;;
|
2017-12-05 22:39:10 -08:00
|
|
|
esac
|
2018-02-17 00:03:36 -08:00
|
|
|
rustup install stable
|
|
|
|
rustup component add rust-src
|
|
|
|
cargo install racer
|
2017-12-05 22:39:10 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
2018-02-17 00:03:36 -08:00
|
|
|
rustup update
|
2017-12-05 22:39:10 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
# link() {}
|
|
|
|
|
|
|
|
# clean() {}
|
|
|
|
|
|
|
|
init "$@"
|