aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline/config.rb')
-rw-r--r--lib/reline/config.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline/config.rb b/lib/reline/config.rb
index 0800dfd30f..6e4ccd544c 100644
--- a/lib/reline/config.rb
+++ b/lib/reline/config.rb
@@ -37,6 +37,7 @@ class Reline::Config
end
def read(file = DEFAULT_PATH)
+ file = ENV['INPUTRC'] if ENV['INPUTRC']
begin
if file.respond_to?(:readlines)
lines = file.readlines