Skip to content

Commit

Permalink
rvm -> rbenv
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Dec 14, 2012
1 parent d575469 commit bdf4684
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions home/.bashrc
Expand Up @@ -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"

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