Some setup stuff.
This commit is contained in:
parent
c0154f7dc3
commit
d2c517b7fd
@ -30,8 +30,10 @@ done
|
|||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
export LANG="en_US"
|
export LANG="en_US"
|
||||||
|
|
||||||
# Add `~/bin` to the `$PATH`
|
# Add ~/bin to the $PATH
|
||||||
export PATH="$HOME/bin:/usr/local/bin:$PATH"
|
export PATH="$HOME/bin:/usr/local/bin:$PATH"
|
||||||
|
# Add brew coreutils to $PATH
|
||||||
|
command -v brew >/dev/null 2>&1 && export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
|
||||||
|
|
||||||
# If possible, add tab completion for many commands
|
# If possible, add tab completion for many commands
|
||||||
[ -f /etc/bash_completion ] && source /etc/bash_completion
|
[ -f /etc/bash_completion ] && source /etc/bash_completion
|
||||||
|
@ -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
|
### 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
|
||||||
bash <(curl -fsSkL raw.github.com/bolknote/shellgames/master/us_layout_remover.sh)
|
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
6
setup/bash.sh
Normal 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
30
setup/brew.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.brew
|
||||||
|
|
||||||
|
# Make sure we’re 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
10
setup/imgo.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user