     repl = nodeREPL.start opts
     repl.on 'exit', -> repl.outputStream.write '\n'
     addMultilineHandler repl
-    addHistory repl
+    addHistory repl, opts.historyFile if opts.historyFile
     repl


replDefaults =
  prompt: 'coffee> ',
  eval: (input, context, filename, cb) ->
    # XXX: multiline hack.
    input = input.replace /\uFF00/g, '\n'

    return

# Store and load command history from a file
addHistory = (repl, filename) ->
  try
    # Get file info and at most 10KB of command history
    stat = fs.statSync filename
