From 8230d2273944f26c4c94b440dd96c7b4a960e990 Mon Sep 17 00:00:00 2001 From: Thomas Loven Date: Fri, 13 Oct 2017 20:32:53 +0200 Subject: [PATCH] Installing basics --- install.sh | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..addaad1 --- /dev/null +++ b/install.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash + +function install_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 ; then + echo "Installing caskroom tap" + brew tap caskroom/cask + fi + +} + +function brew() +{ + /usr/local/bin/brew install $@ +} +function cask() +{ + /usr/local/bin/brew cask install $@ +} + +function install_casks() +{ + + cask google-chrome + cask iterm2 + cask docker + cask caskroom/drivers/logitech-options + cask crisidev/chunkwm/chunkwm + cask koekeishiya/formulae/khd + +} + +function install_brews() +{ + #/usr/local/bin/brew update + brew fish + brew tmux + brew git + brew arp-scan +} + +function setup_fish() +{ + brew fish + echo /usr/local/bin/fish | sudo tee -a /etc/shells + chsh -s /usr/local/bin/fish +} + +install_brews +install_casks +#setup_fish