Permalink
Browse files

Merge pull request #356 from dsedivec/master

Allow irb switches to set the prompt mode
  • Loading branch information...
2 parents ac0c9ad + b51fbeb commit d5872bce8aa453f688cd942f4a1698105e870656 @wayneeseguin wayneeseguin committed Aug 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/irbrc.rb
View
@@ -50,7 +50,7 @@
}
IRB.conf[:PROMPT] ||= {}
IRB.conf[:PROMPT][:RVM] = @prompt
-IRB.conf[:PROMPT_MODE] = :RVM
+IRB.conf[:PROMPT_MODE] = :RVM if IRB.conf[:PROMPT_MODE] == :DEFAULT
# Load the user's irbrc file, if possible.
# Report any errors that occur.

0 comments on commit d5872bc

Please sign in to comment.