Grouping stuff

This commit is contained in:
2017-10-15 20:50:00 +02:00
parent b90cf92fb5
commit 832fa5ee30
30 changed files with 120 additions and 37 deletions

16
system/setup.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
local scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
${scriptdir}/setup_homebrew.sh
caskget google-chrome
caskget docker
}
main "$@"

22
system/setup_homebrew.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
print_info "Setting up homebrew"
if ! which brew>/dev/null; then
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! brew tap | grep caskroom/cask >/dev/null; then
echo "Installing caskroom tap"
brew tap caskroom/cask
fi
print_ok "Homebrew insalled"
}
main "$@"