Skip to content

Instantly share code, notes, and snippets.

@SixFiveSoftware
Last active December 6, 2017 02:18
Show Gist options
  • Save SixFiveSoftware/2da86203c0769cbd58a7917556849f58 to your computer and use it in GitHub Desktop.
Save SixFiveSoftware/2da86203c0769cbd58a7917556849f58 to your computer and use it in GitHub Desktop.
Swift script to install needed homebrew formulas
#!/usr/bin/swift
import Foundation
@discardableResult
func shell(_ args: String...) -> Int32 {
let task = Process()
task.launchPath = "/usr/bin/env"
task.arguments = args
task.launch()
task.waitUntilExit()
return task.terminationStatus
}
shell("brew", "install", "ag")
shell("brew", "install", "archey")
shell("brew", "install", "autoconf")
shell("brew", "install", "autojump")
shell("brew", "install", "automake")
shell("brew", "install", "awscli")
shell("brew", "install", "boost")
shell("brew", "install", "carthage")
shell("brew", "install", "cloc")
shell("brew", "install", "homebrew/versions/cloog018")
shell("brew", "install", "cmake")
shell("brew", "install", "cscope")
shell("brew", "install", "ctags")
shell("brew", "install", "exercism")
shell("brew", "install", "ffmpeg")
shell("brew", "install", "gpg")
shell("brew", "install", "flac")
shell("brew", "install", "fontconfig")
shell("brew", "install", "freetype")
shell("brew", "install", "gcc49")
shell("brew", "install", "gdbm")
shell("brew", "install", "gettext")
shell("brew", "install", "ghostscript")
shell("brew", "install", "git")
shell("brew", "install", "git-flow-avh")
shell("brew", "install", "git-now")
shell("brew", "install", "gmp4")
shell("brew", "install", "go")
shell("brew", "install", "graphicsmagick")
shell("brew", "install", "htop")
shell("brew", "install", "icu4c")
shell("brew", "install", "imagemagick")
shell("brew", "install", "libdvdcss")
shell("brew", "install", "libebml")
shell("brew", "install", "libmagic")
shell("brew", "install", "libmatroska")
shell("brew", "install", "libogg")
shell("brew", "install", "libvo-aacenc")
shell("brew", "install", "libvorbis")
shell("brew", "install", "libxml2")
shell("brew", "install", "macvim")
shell("brew", "install", "makedepend")
shell("brew", "install", "mkvtoolnix")
shell("brew", "install", "mp4v2")
shell("brew", "install", "mpfr2")
shell("brew", "install", "mplayer")
shell("brew", "install", "mysql")
shell("brew", "install", "neovim")
shell("brew", "install", "postgresql")
shell("brew", "install", "redis")
shell("brew", "install", "sourcekitten")
shell("brew", "install", "swiftlint")
shell("brew", "install", "swiftformat")
shell("brew", "install", "texi2html")
shell("brew", "install", "tree")
shell("brew", "install", "unixodbc")
shell("brew", "install", "wget")
shell("brew", "install", "x264")
shell("brew", "install", "xctool")
shell("brew", "install", "yasm")
shell("brew", "install", "docker")
shell("brew", "install", "docker-compose")
shell("brew", "install", "docker-machine")
shell("brew", "install", "docker-swarm")
shell("brew", "tap", "eddieantonio/eddieantonio")
shell("brew", "install", "imgcat")
shell("curl", "-L", "https://bit.ly/janus-bootstrap", "|", "bash")
shell("brew", "install", "httpie")
shell("sudo", "easy_install", "pip")
shell("pip", "install", "pyyaml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment