Skip to content

Commit

Permalink
load c-readline by default and use rb-readline if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Nov 14, 2012
1 parent 703ed6f commit b32758d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ifancy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ class Fancy Interactive {
}
}

require("rb-readline/readline")
try {
require("readline")
} catch LoadError {
require("rb-readline/readline")
}

try {
require("rubygems")
require("coderay")
Expand Down

0 comments on commit b32758d

Please sign in to comment.