Skip to content

Instantly share code, notes, and snippets.

View vpatel90's full-sized avatar

Vivek Patel vpatel90

View GitHub Profile
@vpatel90
vpatel90 / setup.rb
Created May 3, 2017 00:53 — forked from jah2488/setup.rb
A setup script for a new laptop. (Assumes you have homebrew and homebrew cask installed)
class Package < Struct.new(:command, :name, :opts)
def install!
if not_installed?
system("#{command} install #{name} #{opts.join(" ")}")
end
end
def not_installed?
!exists?
end