Commit e0f22f82 authored by alyssa's avatar alyssa

init

parents
# Ignore Everything
*
# except these files
!.gitignore*
!README
!.init.sh*
\ No newline at end of file
#!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until this script has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Install OSX Command-Line Tools and XQuartz, or update
if ! command -v xcode-select >/dev/null 2>&1; then
xcode-select --install
else
sudo softwareupdate -i -a
fi
# ==============================================================================
# Ruby
# ==============================================================================
# RVM
# install SASS
sudo gem install sass
# Get Homebrew
if brew list -1 | grep -q "^${pkg}\$"; then
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# ==============================================================================
# Package Manager
# ==============================================================================
# Make sure we're using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade --all
# Install GNU core utilities (those that come with OSX are outdated).
# Don't forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`
# brew install coreutils
# sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
# brew install findutils
# brew install bash
# Install more recent versions of some OSX tools
# brew tap homebrew/dupes
# brew install homebrew/dupes/grep
# Install other useful binaries
brew install git node
# brew install sass
# Remove outdated versions from the cellar.
brew cleanup
# ==============================================================================
# Applications
# ==============================================================================
apps=(
"bittorrent-sync"
"dropbox"
"1password"
"google-chrome-canary"
"slack"
"sketch"
"sublime-text3"
"sourcetree"
"kaleidoscope"
"carbon-copy-cloner"
"vlc"
"onyx"
"minecraft"
)
for app in "${apps[@]}" ; do
brew cask install $app
done
# https://packagecontrol.io/installation
# https://packagecontrol.io/docs/syncing#dropbox-osx
# ==============================================================================
# Node
# ==============================================================================
packages=(
"bower"
"grunt"
"grunt-cli"
"csslint"
"jslint"
"jscs"
# "mocha"
# "chai"
)
for package in "${packages[@]}" ; do
npm install $package -g
done
\ No newline at end of file
:bangbang: **WARNING: YOU ASSUME ALL RISKS ASSOCIATED WITH FOLLOWING ANY OF THE STEPS BELOW** :bangbang:
===
These settings are for my personal use and probably do not suit your needs. Feel free to fork and modify but **DO NOT** run the code below without understanding the changes that will be made to your computer, as I will not be held responsible. There are plenty of comments, so please READ THEM.
---
Getting Started
===============
```shell
$ bash <(curl -sS https://gitlab.com/alyda/dotfiles/raw/master/.init.sh)
```
What does it do?
----------------
1. Install OSX Command-Line Tools, or update
1. Install [SASS][scss]
1. Install [Homebrew][brew]
+ git
+ [node][nodejs]
1. Homebrew installs Applications:
+ Dropbox (for syncing 1Password)
+ 1Password
+ Canary (Chrome)
+ Slack
+ Sublime (also symlinks `subl`)
+ SourceTree
+ Sketch
+ VLC
+ Onyx
+ Minecraft
1. [NPM][npm] installs:
+ grunt & grunt-cli
+ bower
Acknowledgements
----------------
I did **not** write most of what you'll find here. It has been sourced from [many others][dotfiles]. I apologize if I have not given someone proper attribution, please feel free to open an issue and I'll give credit where it is due.
---
[scss]: http://sass-lang.com
[brew]: http://brew.sh
[nodejs]: https://nodejs.org
[npm]: https://www.npmjs.com
[dotfiles]: https://dotfiles.github.io
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment