Browse files

Fix trailing s in the prompt

  • Loading branch information...
1 parent 382bcec commit a0c5e1420d2b34e1266eab9c29fa7c37cb29a148 @Sutto Sutto committed Jun 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 binscripts/rvm-prompt
View
2 binscripts/rvm-prompt
@@ -87,7 +87,7 @@ if [[ ! -z "$ruby" ]] && [[ ! -z "$(echo "$ruby" | awk '/rvm/{print}')" ]] ; the
command="prompt=\"$format\""
eval "$command"
- echo "$prompt" | sed -e 's#^\s*-*##g' -e 's#--*#-#g' -e 's#-*\s*$##' -e 's#-'${rvm_gemset_separator}'#'${rvm_gemset_separator}'#'
+ echo "$prompt" | sed -e 's#^[[:space:]]*-*##g' -e 's#--*#-#g' -e 's#-*[[:space:]]*$##' -e 's#-'${rvm_gemset_separator}'#'${rvm_gemset_separator}'#'
else
while [[ $# -gt 0 ]] ; do

0 comments on commit a0c5e14

Please sign in to comment.