mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 03:00:11 +00:00
[provisioning] Add rust and pastel
This commit is contained in:
parent
c27814ac8c
commit
693ca30b28
2 changed files with 28 additions and 0 deletions
6
recipes/pastel
Normal file
6
recipes/pastel
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Description: A CLI utility to generate, analyze, convert, and manipulate colors
|
||||||
|
set -e
|
||||||
|
|
||||||
|
_recipe rust
|
||||||
|
_cargo pastel
|
22
recipes/rust
Normal file
22
recipes/rust
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Description: The Rust programming language
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case $_PLATFORM in
|
||||||
|
darwin)
|
||||||
|
_recipe brew
|
||||||
|
_recipe _path
|
||||||
|
|
||||||
|
_brew rust
|
||||||
|
_path "$HOME/.cargo/bin"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
function _cargo {
|
||||||
|
local pkg=$1
|
||||||
|
if ! cargo install --list | grep "^$pkg " >/dev/null; then
|
||||||
|
_run "[cargo] Install $pkg" cargo install $pkg
|
||||||
|
else
|
||||||
|
echo "[cargo] $pkg is already installed, skipping."
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in a new issue