Skip to content

Commit

Permalink
fixing a couple installation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Jun 2, 2012
1 parent f4d093c commit f57a719
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

These are config files to set up a system the way I like it. It now uses [Oh My ZSH](https://github.com/robbyrussell/oh-my-zsh). If you would like to see my old, custom Bash and ZSH config, check out [this branch](https://github.com/ryanb/dotfiles/tree/custom-bash-zsh)

I am running on Mac OS X, but it will likely work on Linux as well.


## Installation

Expand All @@ -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.

```terminal
Expand All @@ -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.


Expand All @@ -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.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ require 'erb'

desc "install the dot files into user's home directory"
task :install do
switch_to_zsh
install_oh_my_zsh
switch_to_zsh
replace_all = false
files = Dir['*'] - %w[Rakefile README.rdoc LICENSE oh-my-zsh]
files << "oh-my-zsh/custom/plugins/rbates"
Expand Down Expand Up @@ -47,6 +47,9 @@ def link_file(file)
File.open(File.join(ENV['HOME'], ".#{file.sub('.erb', '')}"), 'w') do |new_file|
new_file.write ERB.new(File.read(file)).result(binding)
end
elsif file =~ /zshrc$/ # copy zshrc instead of link
puts "copying ~/.#{file}"
system %Q{cp "$PWD/#{file}" "$HOME/.#{file}"}
else
puts "linking ~/.#{file}"
system %Q{ln -s "$PWD/#{file}" "$HOME/.#{file}"}
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ ZSH_THEME="rbates"
DISABLE_AUTO_UPDATE="true"
DISABLE_LS_COLORS="true"

plugins=(git bundler brew gem rbenv rbates)
plugins=(git brew gem rbates)

source $ZSH/oh-my-zsh.sh

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.