From 4ff9d29a6b6c5d24e86419b1604e4e8ab7410e32 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 29 Aug 2013 18:36:28 -0400 Subject: [PATCH] rbenv on linux --- .zshrc | 4 ++++ README.md | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index fac266b..89777d6 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,8 @@ ZSH_THEME="gnzh" if [[ "$OSTYPE" == darwin* ]]; then PATH="/opt/boxen/homebrew/opt/coreutils/libexec/gnubin:$PATH" MANPATH="/opt/boxen/homebrew/apt/coreutils/libexec/gnubin:$MANPATH" +else + export PATH="$HOME/.rvenv/bin:$PATH" fi # List directory when changing (github/r00k) @@ -85,4 +87,6 @@ export EDITOR='vim' if [[ "$OSTYPE" == darwin* ]]; then source /opt/boxen/env.sh +else + eval "$(rbenv init -)" fi diff --git a/README.md b/README.md index 2af60cc..688c335 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,14 @@ sudo apt-get install tmux zsh zclip chsh -s /bin/zsh ``` -LOGOUT COMPLETELY and relogin +Install rbenv +``` +git clone https://github.com/sstephenson/rbenv.git ~/.rbenv +git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build +``` ``` +exec $SHELL -1 git clone repo mv dotfiles/\* . git submodule update --init @@ -14,6 +19,12 @@ source .zshrc ```:BundleInstall``` inside of vim +``` +exec $SHELL -1 +rbenv install 1.9.3-p327 +rbenv rehash +``` + Remote Server: edit /etc/ssh/sshd_config