Browse files

fixing a couple installation issues

  • Loading branch information...
1 parent f4d093c commit f57a719180be5ac1a6241702361a2adebc44edca @ryanb committed Jun 2, 2012
Showing with 16 additions and 14 deletions.
  1. +8 −9
  2. +4 −1 Rakefile
  3. 0 oh-my-zsh/custom/{plugins → }/rbates.zsh-theme
  4. +4 −4 zshrc
@@ -2,6 +2,8 @@
These are config files to set up a system the way I like it. It now uses [Oh My ZSH]( If you would like to see my old, custom Bash and ZSH config, check out [this branch](
+I am running on Mac OS X, but it will likely work on Linux as well.
## Installation
@@ -15,14 +17,13 @@ rake install
After installing, open a new terminal window to see the effects.
-## Environment
-I am running on Mac OS X, but it will likely work on Linux as well.
+Feel free to customize the .zshrc file to match your preference.
## Features
+Many of the following features are added through the "rbates" Oh My ZSH plugin.
I normally place all of my coding projects in ~/code, so this directory can easily be accessed (and tab completed) with the "c" command.
@@ -46,8 +47,6 @@ To speed things up, the results are cached in local .rake_tasks~ and .cap_tasks~
If you're using git, you'll notice the current branch name shows up in the prompt while in a git repository.
-If there are some shell configuration settings which you want secure or specific to one system, place it into a ~/.localrc file. This will be loaded automatically if it exists.
There are several features enabled in Ruby's irb including history and completion. Many convenience methods are added as well such as "ri" which can be used to get inline documentation in IRB. See irbrc file for details.
@@ -63,11 +62,11 @@ unlink ~/.gvimrc
unlink ~/.irbrc
unlink ~/.vim
unlink ~/.vimrc
-unlink ~/.zshrc
-rm ~/.gitconfig # careful here
+rm ~/.zshrc # careful here
+rm ~/.gitconfig
rm -rf ~/.dotfiles
rm -rf ~/.oh-my-zsh
-chsh -s `which bash` # change back to Bash if you want
+chsh -s /bin/bash # change back to Bash if you want
Then open a new terminal window to see the effects.
@@ -3,8 +3,8 @@ require 'erb'
desc "install the dot files into user's home directory"
task :install do
- switch_to_zsh
+ switch_to_zsh
replace_all = false
files = Dir['*'] - %w[Rakefile README.rdoc LICENSE oh-my-zsh]
files << "oh-my-zsh/custom/plugins/rbates"
@@ -47,6 +47,9 @@ def link_file(file)['HOME'], ".#{file.sub('.erb', '')}"), 'w') do |new_file|
+ elsif file =~ /zshrc$/ # copy zshrc instead of link
+ puts "copying ~/.#{file}"
+ system %Q{cp "$PWD/#{file}" "$HOME/.#{file}"}
puts "linking ~/.#{file}"
system %Q{ln -s "$PWD/#{file}" "$HOME/.#{file}"}
8 zshrc
@@ -3,11 +3,11 @@ ZSH_THEME="rbates"
-plugins=(git bundler brew gem rbenv rbates)
+plugins=(git brew gem rbates)
source $ZSH/
-export PATH="$HOME/.bin:/usr/local/bin:$PATH"
+# for Homebrew installed rbenv
+if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
-# use .localrc for settings specific to one system
-[[ -f ~/.localrc ]] && . ~/.localrc
+export PATH="$HOME/.bin:/usr/local/bin:$PATH"

0 comments on commit f57a719

Please sign in to comment.