diff options
Diffstat (limited to 'lib/pry/history.rb')
-rw-r--r-- | lib/pry/history.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pry/history.rb b/lib/pry/history.rb index b40dac50..0e7b1f37 100644 --- a/lib/pry/history.rb +++ b/lib/pry/history.rb @@ -136,6 +136,7 @@ class Pry if defined?(@history_file) @history_file else + FileUtils.mkdir_p(File.dirname(history_file_path)) @history_file = File.open(history_file_path, 'a', 0600).tap do |file| file.sync = true end |