Some setup stuff.

This commit is contained in:
Artem Sapegin
2012-10-12 18:53:55 +04:00
parent c0154f7dc3
commit d2c517b7fd
5 changed files with 62 additions and 2 deletions

View File

@ -1,7 +1,19 @@
## Prerequisites
* [Command Line Tools for Xcode](https://developer.apple.com/downloads)
* [homebrew](http://mxcl.github.com/homebrew/)
* [node.js](http://nodejs.org/)
### How to remove US English keyboard layout on Mac OS X
Useful when you use some kind of [typo layout](http://ilyabirman.ru/projects/typography-layout/).
Useful when you use some kind of [typography layout](http://ilyabirman.ru/projects/typography-layout/).
```bash
bash <(curl -fsSkL raw.github.com/bolknote/shellgames/master/us_layout_remover.sh)
```
### Misc
* [OSX Python developer guide](https://gist.github.com/902296)

6
setup/bash.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# Installs Bash 4 and registers it as a default shell
brew install bash
grep '/usr/local/bin/bash' /etc/shells >/dev/null 2>&1 && sudo bash -c "echo /usr/local/bin/bash >> /etc/shells"
chsh -s /usr/local/bin/bash $USER

30
setup/brew.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.brew
# Make sure were using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install wget with IRI support
#brew install wget --enable-iri
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
#brew tap josegonzalez/homebrew-php
#brew install php54
# Install everything else
brew install git
brew install git-extras
#brew install node
# Remove outdated versions from the cellar
brew cleanup

10
setup/imgo.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# https://github.com/imgo/imgo
brew install exiftool imagemagick optipng libjpeg gifsicle
formulas='pngout.rb defluff.rb cryopng.rb imgo.rb'
for package in $formulas
do
brew install "https://raw.github.com/imgo/imgo-tools/master/Formula/"$package
done