Skip to content

Instantly share code, notes, and snippets.

@KevCaz
Last active November 20, 2018 00:27
Show Gist options
  • Save KevCaz/d987713aa945c901029d21a3af966638 to your computer and use it in GitHub Desktop.
Save KevCaz/d987713aa945c901029d21a3af966638 to your computer and use it in GitHub Desktop.
Light install MacOS 10.14
!/bin/bash
##-- Installing Homebrew
## use xcode-select -p to check whether Xcode is installed
xcode-select --install
sudo xcodebuild -license
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
##-- Tapping
brew tap osgeo/osgeo4mac
##-- First formulas
brew install libgit2 git libxml2 udunits python node jags ffmpeg tree bib-tool qpdf pandoc pando-citeproc
##-- Install Gis dependencies and r
brew install jasper gdal geos proj ncdf
brew install gdal2 --with-armadillo --with-complete --with-libkml --with-unsupported
brew install r
##-- Installing formulas from the cask
brew cask install google-chrome atom zotero libreoffice inkscape vlc Rstudio iterm2
##-- Atom packages
apm install autocomplete-bibtex autocomplete-R language-knitr language-latex language-r language-matlab language-docker
apm install minimap pdf-view pigments color-picker file-icons wordcount ascii-unicode-escape platformio-ide-terminal tablr
##-- Install zsh and prezto (https://codurance.com/2015/03/16/installing-zprezto-a-quick-guide/)
zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# change shell
chsh -s /bin/zsh
# Powerline
pip install https://github.com/Lokaltog/powerline/tarball/develop
# clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
echo "source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh" >> .zshrc
echo "export LC_ALL=en_US.UTF-8" >> .zshrc
echo "export LANG=en_US.UTF-8" >> .zshrc
##-- Reboot
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment