Skip to content

Commit

Permalink
change to use rbenv
Browse files Browse the repository at this point in the history
  • Loading branch information
AOKI Hanae committed Oct 20, 2011
1 parent aaa64e0 commit 61aeef4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .powenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vim:set ft=sh:

export PATH=$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH
7 changes: 6 additions & 1 deletion .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ typeset -U path
path=(
$HOME/bin(N-/)
$HOME/local/bin(N-/)
$HOME/.rbenv/bin(N-/)
/usr/local/bin(N-/)
/usr/local/sbin(N-/)
/usr/bin(N-/)
Expand All @@ -19,7 +20,11 @@ path=(
/sbin(N-/)
)

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
. "$HOME/.rvm/scripts/rvm"
elif [[ -s "$HOME/.rbenv" ]]; then
eval "$(rbenv init -)"
fi
[[ -s "$HOME/.pythonbrew/etc/bashrc" ]] && . "$HOME/.pythonbrew/etc/bashrc"

uname=`uname`
Expand Down
6 changes: 4 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ autoload -U -z rprompt-git-current-branch

init_prompt() {
if [[ -x `which rvm-prompt` ]]; then
PROMPT_RVM="%{${fg[red]}%}(`rvm-prompt`)"
PROMPT_RUBY="%{${fg[red]}%}(`rvm-prompt`)"
elif [[ `type rbenv` = 'rbenv is a shell function' ]]; then
PROMPT_RUBY="%{${fg[red]}%}(`rbenv version-name`)"
fi
if [[ -n "$PERLBREW_PERL" ]]; then
PROMPT_PERLBREW="%{${fg[blue]}%}($PERLBREW_PERL)"
Expand All @@ -127,7 +129,7 @@ init_prompt() {
fi
PROMPT_USER="%{${fg[yellow]}%}<%n%#%m>"
PROMPT_CMD=" %{${fg[green]}%}S | v | Z %{${reset_color}%}< "
PROMPT="$PROMPT_USER $PROMPT_RVM $PROMPT_PERLBREW $PROMPT_PTYHONBREW
PROMPT="$PROMPT_USER $PROMPT_RUBY $PROMPT_PERLBREW $PROMPT_PTYHONBREW
$PROMPT_CMD"
RPROMPT="[%{${fg[yellow]}%}%~%{${reset_color}%} (`rprompt-git-current-branch`)]"
}
Expand Down

0 comments on commit 61aeef4

Please sign in to comment.