From cff6025338afed9ac0ede59b3e4b7722d4a64bbf Mon Sep 17 00:00:00 2001 From: AlfredoBejarano Date: Wed, 20 Apr 2016 00:58:08 -0500 Subject: [PATCH] Removes pipes around ruby version --- themes/cooperkid/cooperkid.theme.bash | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/themes/cooperkid/cooperkid.theme.bash b/themes/cooperkid/cooperkid.theme.bash index 60e4adec..ff4df68e 100644 --- a/themes/cooperkid/cooperkid.theme.bash +++ b/themes/cooperkid/cooperkid.theme.bash @@ -12,6 +12,15 @@ SCM_THEME_PROMPT_SUFFIX="" GIT_SHA_PREFIX="${blue}" GIT_SHA_SUFFIX="${reset_color}" +function rvm_version_prompt { + if which rvm &> /dev/null; then + rvm=$(rvm-prompt) || return + if [ -n "$rvm" ]; then + echo -e "$rvm" + fi + fi +} + function git_short_sha() { SHA=$(git rev-parse --short HEAD 2> /dev/null) && echo "$GIT_SHA_PREFIX$SHA$GIT_SHA_SUFFIX" }