Skip to content

Commit

Permalink
fix gkz#897
Browse files Browse the repository at this point in the history
  • Loading branch information
pepkin88 committed Jul 31, 2018
1 parent 94f429b commit 2d38bad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/repl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/repl.ls
Expand Up @@ -3,6 +3,7 @@ require! {
path
fs
util
os
'prelude-ls': {each, lines, unlines, take}:prelude
}

Expand Down Expand Up @@ -40,7 +41,8 @@ dasherize-vars = (str) -> if /^[a-z]/ is str then dasherize str else str
say util.inspect x, show-hidden, depth, !process.env.NODE_DISABLE_COLORS
ppp = !-> pp it, true, null
MAX-HISTORY-SIZE = 500
history-file = path.join process.env.HOME, '/.lsc_history'
home-dir = os.homedir?! or process.env.HOME or process.env.USERPROFILE
history-file = path.join home-dir, '/.lsc_history'
code = if repl.infunc then ' ' else ''
cont = 0
rl = require 'readline' .create-interface stdin, stdout
Expand Down

0 comments on commit 2d38bad

Please sign in to comment.