Skip to content

Instantly share code, notes, and snippets.

@iamkevinv
Forked from marklawlor/setup.sh
Last active August 29, 2015 14:22

Revisions

  1. iamkevinv revised this gist Jun 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,7 @@ binaries=(
    zsh
    z
    ack
    tig
    vim
    node
    mongodb
  2. iamkevinv revised this gist Jun 16, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -101,6 +101,9 @@ apps=(
    echo "installing apps..."
    brew cask install --appdir="/Applications" ${apps[@]}

    # Install a bunch of quick look plugins for devs
    brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package

    #
    # Setup Bash
    #
  3. iamkevinv revised this gist Jun 15, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ brew install coreutils
    # Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
    brew install findutils

    # Install Bash 4
    # Install Bash 4 to patch vunerabilities
    brew install bash

    # Install more recent versions of some OS X tools
    @@ -62,10 +62,11 @@ binaries=(
    python
    git
    zsh
    z
    ack
    vim
    z
    node
    node
    mongodb
    )

    echo "installing binaries..."
    @@ -91,7 +92,6 @@ apps=(
    sublime-text3
    virtualbox
    vlc
    transmission
    vagrant
    vagrant-manager
    )
  4. iamkevinv revised this gist Jun 9, 2015. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -86,13 +86,10 @@ apps=(
    dropbox
    google-chrome
    firefox
    spotify
    vagrant
    iterm2
    sublime-text3
    virtualbox
    atom
    flux
    vlc
    transmission
    vagrant
  5. iamkevinv revised this gist Jun 9, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -64,7 +64,6 @@ binaries=(
    zsh
    ack
    vim
    macvim
    z
    node
    )
  6. @marklawlor marklawlor created this gist Nov 7, 2014.
    138 changes: 138 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,138 @@
    #!/bin/bash


    #
    # Helper functions
    #

    function pause(){
    read -p "$*"
    }

    #
    # XCode install
    #

    # Install xcode
    xcode-select --install

    # Verify install
    gcc --install

    pause 'Verify Xcode was installed correctly and press [Enter] key to continue...'

    #
    # Homebrew install
    #

    # Check for Homebrew,
    # Install if we don't have it
    if test ! $(which brew); then
    echo "Installing homebrew..."
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    fi
    brew update; brew; brew upgrade brew-cask; brew doctor

    pause 'Verify Brew was installed correctly and press [Enter] key to continue...'

    #
    # OSX Utility Install
    #

    echo "installing OSX utilities..."

    # Install GNU core utilities (those that come with OS X are outdated)
    brew install coreutils

    # Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
    brew install findutils

    # Install Bash 4
    brew install bash

    # Install more recent versions of some OS X tools
    brew tap homebrew/dupes
    brew install homebrew/dupes/grep

    #
    # Binaries Install
    #

    binaries=(
    python
    git
    zsh
    ack
    vim
    macvim
    z
    node
    )

    echo "installing binaries..."
    brew install ${binaries[@]}

    brew linkapps

    brew cleanup

    #
    # Application Install
    #

    brew install caskroom/cask/brew-cask

    # Apps
    apps=(
    dropbox
    google-chrome
    firefox
    spotify
    vagrant
    iterm2
    sublime-text3
    virtualbox
    atom
    flux
    vlc
    transmission
    vagrant
    vagrant-manager
    )

    # Install apps to /Applications
    # Default is: /Users/$user/Applications
    echo "installing apps..."
    brew cask install --appdir="/Applications" ${apps[@]}

    #
    # Setup Bash
    #

    echo "installing zsh..."

    # Setup zsh as a shell
    echo "/usr/local/bin/zsh" | sudo tee -a /etc/shells

    # Make default shell
    chsh -s /usr/local/bin/zsh

    # Install oh-my-zsh
    curl -L http://install.ohmyz.sh | sh

    # Enable oh-my-zsh plugins
    echo "plugins=(git brew npm)" >> ~/.zshrc

    # Syntax highlighting for zsh
    cd ~/.oh-my-zsh && git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
    echo "source ~/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
    source ~/.zshrc

    # Add Z to zsh
    echo ". `brew --prefix`/etc/profile.d/z.sh" >> ~/.zshrc



    # References
    # http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac
    # http://jilles.me/badassify-your-terminal-and-shell/