Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix rbenv prompt

  • Loading branch information...
commit 693cf52577d17f38ff356f74fa585c64cd92dddb 1 parent 9e270f2
@holman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  zsh/prompt.zsh
View
2  zsh/prompt.zsh
@@ -43,7 +43,7 @@ need_push () {
rb_prompt(){
if $(which rbenv &> /dev/null)
then
- echo "%{$fg_bold[yellow]%}$(cat $HOME/.rbenv/version)%{$reset_color%}"
+ echo "%{$fg_bold[yellow]%}$(rbenv version | awk '{print $1}')%{$reset_color%}"
else
echo ""
fi
Please sign in to comment.
Something went wrong with that request. Please try again.