Permalink
Browse files

[zsh] rbenv support

  • Loading branch information...
sickill committed May 12, 2012
1 parent bc514fa commit e39be5bdcde77d7b25ff23fbc7b1acd164452dfb
Showing with 22 additions and 0 deletions.
  1. +21 −0 .zsh/rbenv.zsh
  2. +1 −0 .zshrc
View
@@ -0,0 +1,21 @@
+if [[ -d "$HOME/.rbenv" ]]; then
+ export PATH="$HOME/.rbenv/bin:$PATH"
+
+ # eval "$(rbenv init -)"
+ export PATH="/home/kill/.rbenv/shims:${PATH}"
+ source "/home/kill/.rbenv/libexec/../completions/rbenv.zsh"
+ # rbenv rehash 2>/dev/null
+ rbenv() {
+ local command="$1"
+ if [ "$#" -gt 0 ]; then
+ shift
+ fi
+
+ case "$command" in
+ shell)
+ eval `rbenv "sh-$command" "$@"`;;
+ *)
+ command rbenv "$command" "$@";;
+ esac
+ }
+fi
View
1 .zshrc
@@ -7,6 +7,7 @@ setopt autopushd
. ~/.zsh/completion.zsh
. ~/.zsh/key-bindings.zsh
+. ~/.zsh/rbenv.zsh
. ~/.zsh/env.zsh
. ~/.zsh/aliases.zsh
. ~/.zsh/termsupport.zsh

0 comments on commit e39be5b

Please sign in to comment.