Grouping stuff
This commit is contained in:
16
system/setup.sh
Normal file
16
system/setup.sh
Normal 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
22
system/setup_homebrew.sh
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user