Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make rvm prompt function a bit cleaner

  • Loading branch information...
commit a7fb6680789c0a45c23539f9cce623a920ae143e 1 parent 3d1b788
Trae Robrock authored

Showing 1 changed file with 1 addition and 7 deletions. Show diff stats Hide diff stats

  1. +1 7 lib/rvm.zsh
8 lib/rvm.zsh
... ... @@ -1,11 +1,5 @@
1 1 # get the name of the branch we are on
2 2 function rvm_prompt_info() {
3 3 ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
4   - if [ -z $ruby_version ]
5   - then
6   - return
7   - fi
8   - echo "($ruby_version)"
  4 + [[ ! -z $ruby_version ]] && echo "($ruby_version)"
9 5 }
10   -
11   -

0 comments on commit a7fb668

Please sign in to comment.
Something went wrong with that request. Please try again.