Skip to content

Commit

Permalink
Detect RVM's default IRB prompt in the *console* buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Jun 18, 2011
1 parent 11fc6e1 commit 235f14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rinari.el
Expand Up @@ -247,8 +247,8 @@ argument allows editing of the console command arguments."
(run-ruby command)
(save-excursion
(set-buffer "*ruby*")
(set (make-local-variable 'inf-ruby-first-prompt-pattern) "^>> ")
(set (make-local-variable 'inf-ruby-prompt-pattern) "^>> ")
(set (make-local-variable 'inf-ruby-prompt-pattern) "^\\([a-zA-Z0-9.\-]+ :[0-9]+ >\\|>>\\) ")
(set (make-local-variable 'inf-ruby-first-prompt-pattern) inf-ruby-prompt-pattern)
(rinari-launch))))

(defun rinari-sql ()
Expand Down

0 comments on commit 235f14b

Please sign in to comment.