Skip to content

Commit

Permalink
kill rvm
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Apr 10, 2012
1 parent dac92c6 commit 9e270f2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Expand Up @@ -3,7 +3,7 @@
## dotfiles

Your dotfiles are how you personalize your system. These are mine. The very
prejudiced mix: OS X, zsh, Ruby, Rails, git, homebrew, rvm, vim. If you
prejudiced mix: OS X, zsh, Ruby, Rails, git, homebrew, rbenv, vim. If you
match up along most of those lines, you may dig my dotfiles.

I was a little tired of having long alias files and everything strewn about
Expand Down Expand Up @@ -66,13 +66,13 @@ bubble bath.

- If you want some more colors for things like `ls`, install grc: `brew install
grc`.
- If you install the excellent [rvm](http://rvm.beginrescueend.com) to manage
multiple rubies, your current branch will show up in the prompt. Bonus.
- If you install the excellent [rbenv](https://github.com/sstephenson/rbenv) to
manage multiple rubies, your current branch will show up in the prompt. Bonus.

## bugs

I want this to work for everyone; that means when you clone it down it should
work for you even though you may not have `rvm` installed, for example. That
work for you even though you may not have `rbenv` installed, for example. That
said, I do use this as *my* dotfiles, so there's a good chance I may break
something if I forget to make a check for a dependency.

Expand Down
2 changes: 1 addition & 1 deletion git/aliases.zsh
Expand Up @@ -26,4 +26,4 @@ alias gca='git commit -a'
alias gco='git checkout'
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
2 changes: 1 addition & 1 deletion ruby/aliases.zsh
@@ -1,4 +1,4 @@
alias r='rvm use 1.8.7'
alias r='rbenv local 1.8.7-p358'

alias sc='script/console'
alias sg='script/generate'
Expand Down
1 change: 0 additions & 1 deletion ruby/rvm.zsh

This file was deleted.

4 changes: 2 additions & 2 deletions system/path.zsh
@@ -1,3 +1,3 @@
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$PATH:$HOME/.rvm/bin"
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$HOME/.rbenv/bin:$PATH"

export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
8 changes: 4 additions & 4 deletions zsh/prompt.zsh
Expand Up @@ -40,10 +40,10 @@ need_push () {
fi
}

rvm_prompt(){
if $(which rvm &> /dev/null)
rb_prompt(){
if $(which rbenv &> /dev/null)
then
echo "%{$fg_bold[yellow]%}$(rvm tools identifier)%{$reset_color%}"
echo "%{$fg_bold[yellow]%}$(cat $HOME/.rbenv/version)%{$reset_color%}"
else
echo ""
fi
Expand Down Expand Up @@ -72,7 +72,7 @@ directory_name(){
echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
}

export PROMPT=$'\n$(rvm_prompt) in $(directory_name) $(git_dirty)$(need_push)\n'
export PROMPT=$'\n$(rb_prompt) in $(directory_name) $(git_dirty)$(need_push)\n'
set_prompt () {
export RPROMPT="%{$fg_bold[cyan]%}$(todo)%{$reset_color%}"
}
Expand Down
3 changes: 3 additions & 0 deletions zsh/zshrc.symlink
Expand Up @@ -20,3 +20,6 @@ compinit

# load every completion after autocomplete loads
for config_file ($ZSH/**/completion.sh) source $config_file

# I guess we need to load rbenv last. Meh.
eval "$(rbenv init -)"

2 comments on commit 9e270f2

@jgillman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do very little ruby work but I'm curious why you prefer rbenv over rvm. (I've only used rvm, but have no allegiance.)

@holman
Copy link
Owner Author

@holman holman commented on 9e270f2 Apr 11, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty hellish to get rvm compiling new rubies on  command line tools. rbenv has its fair share of shittiness, too, though.

Please sign in to comment.