Advertisement
becker_11

OSX homebrew install script

Mar 10th, 2016
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.14 KB | None | 0 0
  1.  
  2. #!/bin/sh
  3. #
  4. ## Install xcode command line tools
  5. xcode-select --install
  6. #
  7. #Install Brew Packages
  8. #
  9. # Check for Homebrew,
  10. # Install if we don't have it
  11.  
  12. if test ! $(which brew); then
  13.   echo "Installing homebrew..."
  14.   ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  15. fi
  16.  
  17. ## Is this the correct way to append to the path statement?
  18.  
  19.     PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
  20.  
  21.     MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
  22.  
  23. #Example configurations have been installed to:
  24. #  /usr/local/opt/tmux/share/tmux/examples
  25.  
  26. binaries=(
  27.     coreutils
  28.     findutils
  29.     bash
  30.     ffmpeg
  31.     figlet
  32.   fish
  33.     htmldoc
  34.     htop-osx
  35.     imagemagick
  36.   msmtp
  37.   mutt
  38.   offlineimap
  39.     tmux
  40.   tree
  41.   urlview
  42.   aspell --with-lang-en_US
  43.   vim
  44.     weechat --with-aspell --with-perl --with-python
  45.   wget
  46.   xclip
  47.     youtube-dl
  48.   )
  49.  
  50. echo "installing binaries..."
  51. brew install ${binaries[@]}
  52.  
  53. # Install more recent versions of some OS X tools
  54. #
  55. brew tap homebrew/dupes
  56. brew tap homebrew/x11
  57. brew tap homebrew/versions
  58. brew install homebrew/x11/xclip
  59. brew install homebrew/dupes/grep
  60. brew install homebrew/dupes/nano --disable-nls --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
  61.  
  62. brew install caskroom/cask/brew-cask
  63. brew cask install google-chrome-canary
  64.  
  65. # Apps
  66. apps=(
  67.     1password
  68.     alfred
  69.     alternote
  70.     atom
  71.     bartender
  72.     brackets
  73.     cleanmymac
  74.     daisydisk
  75.     dropbox
  76.     firefox
  77.   firefoxdeveloperedition
  78.     flux
  79.     github-desktop
  80.     google-chrome
  81.   google-chrome-canary
  82.     hazel
  83.     iterm2
  84.   itsycal
  85.     keka
  86.   moom
  87.     nvalt
  88.     omnifocus
  89.     seil
  90.     slack
  91.     textexpander
  92.     transmission
  93.     vlc
  94.     xquartz
  95.  
  96. )
  97.  
  98. # Install apps to /Applications
  99. # Default is: /Users/$user/Applications
  100.  
  101. echo "installing apps..."
  102. brew cask install --appdir="/Applications" ${apps[@]}
  103.  
  104. #
  105. #Install Fonts
  106. #
  107.  
  108. brew tap caskroom/fonts
  109. brew cask install font-ubuntu
  110.  
  111. #
  112. #Cleanup After Install
  113. #
  114.  
  115. brew cleanup
  116. brew cask cleanup
  117.  
  118. ## Install Powerline Fonts
  119. ## https://ruigomes.me/blog/perfect-iterm-osx-terminal-installation/
  120. git clone https://github.com/powerline/fonts.git && cd fonts && ./install.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement