#!/bin/bash if [ ! -z "$(echo `which ruby` | grep '\.rvm')" ] ; then echo "[$(which ruby | xargs dirname | xargs dirname | xargs basename | tr '-' ':')]" fi