Permalink
Browse files

rvm -> rbenv

  • Loading branch information...
1 parent d575469 commit bdf468401e4de825480eca89397ed9cb209be058 @dougm committed Dec 14, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −12 home/.bashrc
View
@@ -5,15 +5,6 @@ parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
-rvm_version() {
- local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
- [ "$gemset" != "" ] && gemset="@$gemset"
- local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
- [ "$version" == "1.8.7" ] && version=""
- local full="$version$gemset"
- [ "$full" != "" ] && echo "$full "
-}
-
tmux_cmd="tmux -2"
tmux_cfg="$HOME/.tmux.$(uname).conf"
@@ -37,7 +28,7 @@ HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"
-PS1="$NM\$(rvm_version)\h:$SI\w$HII\$(parse_git_branch)$IN% "
+PS1="$NM\h:$SI\w$HII\$(parse_git_branch)$IN% "
dircolors="$(type -P gdircolors dircolors | head -1)"
test -n "$dircolors" && {
@@ -57,5 +48,5 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
-
+PATH="$HOME/.rbenv/bin:$PATH"
+eval "$(rbenv init -)"

0 comments on commit bdf4684

Please sign in to comment.