This commit is contained in:
Adam Sumner 2013-09-24 17:05:12 -07:00
commit 6c362fbf57
10 changed files with 99 additions and 34 deletions

5
.gitignore vendored
View file

@ -6,3 +6,8 @@ custom/example.zsh
*.swp
!custom/example.zshcache
cache/
.DS_Store
*/.DS_Store
*/*/.DS_Store
*/**/.DS_Store

View file

@ -4,43 +4,27 @@ oh-my-zsh is an open source, community-driven framework for managing your ZSH co
bq. "OH MY ZSHELL!"
h2. Big thanks to @robbyrussell for building oh-my-zsh
h2. Setup
@oh-my-zsh@ should work with any recent release of "zsh":http://www.zsh.org/, the minimum recommended version is 4.3.9.
h3. The automatic installer... (do you trust me?)
You can install this via the command line with either `curl` or `wget`.
h4. via `curl`
@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@
h4. via `wget`
@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
h3. The manual way
h3. Installation
1. Clone the repository
@git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
@git clone git://github.com/sasasasumna/oh-my-zsh.git ~/.oh-my-zsh@
2. *OPTIONAL* Backup your existing ~/.zshrc file
@cp ~/.zshrc ~/.zshrc.orig@
3. Create a new zsh config by copying the zsh template we've provided.
3. Run the setup script
@cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc@
@~/.oh-my-zsh/setup.sh@
4. Set zsh as your default shell:
@chsh -s /bin/zsh@
5. Start / restart zsh (open a new terminal is easy enough...)
4. Start / restart zsh (open a new terminal is easy enough...)
h3. Problems?

43
homebrew_packages.txt Normal file
View file

@ -0,0 +1,43 @@
android-sdk
apple-gcc42
autoconf
beanstalk
boost
chromedriver
cmake
curl
elasticsearch
freetype
gdbm
gettext
git
graphviz
heroku-toolbelt
hub
libevent
libffi
libpng
libyaml
lzlib
maven
memcached
mysql
neo4j
node
openssl
ossp-uuid
pcre
phantomjs
pkg-config
postgresql
rabbitmq
rbenv
readline
redis
ruby-build
v8
vim
wget
xz
zlib
zsh

15
setup.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
brew update
brew upgrade
brew install `cat homebrew_packages.txt`
[ ! -f ~/.zshrc ] && cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
[ ! -f ~/.variables ] && cp ~/.oh-my-zsh/templates/variables.zsh-template ~/.variables
[ ! -f ~/.aliases ] && cp ~/.oh-my-zsh/templates/aliases.zsh-template ~/.aliases
[ ! -f ~/.secrets ] && cp ~/.oh-my-zsh/templates/secrets.zsh-template ~/.secrets
[ ! -f ~/.customizations ] && cp ~/.oh-my-zsh/templates/customizations.zsh-template ~/.customizations
[ ! -f ~/.gemrc] && cp ~/.oh-my-zsh/templates/gemrc.zsh-template ~/.gemrc
echo "/usr/local/bin/zsh" >> /etc/shells # TODO grep to ensure that this line isn't there before appending it
chsh -s /usr/local/bin/zsh `whoami`

View file

@ -0,0 +1,4 @@
# Put your aliases here
alias git=hub

View file

@ -0,0 +1,6 @@
unalias run-help
autoload run-help
export HELPDIR=/usr/local/share/zsh/helpfiles
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

View file

@ -0,0 +1,3 @@
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri

View file

@ -0,0 +1,2 @@
# Put all secret keys here

View file

@ -0,0 +1,6 @@
# Put variables here
export RBENV_ROOT=/usr/local/var/rbenv
export PATH=/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH
export JAVA_HOME=`/usr/libexec/java_home`
export ANDROID_HOME=/usr/local/opt/android-sdk

View file

@ -1,12 +1,9 @@
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
DISABLE_AUTO_UPDATE="true"
DISABLE_CORRECTION="true"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
@ -37,11 +34,11 @@ ZSH_THEME="robbyrussell"
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
plugins=(brew bundler battery colored-man colorize copydir copyfile cp dircycle encode64 extract gem git git-extras git-remote-branch history-substring-search history jira jruby npm node osx postgres rails rake rbenv ruby sublime urltools)
source $ZSH/oh-my-zsh.sh
source ~/.aliases
source ~/.variables
source ~/.secrets
source ~/.customizations
# Customize to your needs...