Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d5d1f12..c117c57 100644
--- a/init.lua
+++ b/init.lua
@@ -514,7 +514,7 @@ _LAST = ''
-- Readline:
local readline_ok,readline = pcall(require,'readline')
local nextline,saveline
-if readline_ok then
+if readline_ok and (os.getenv('HOME') or os.getenv('USERPROFILE')) ~= nil then
-- Readline found:
local history = (os.getenv('HOME') or os.getenv('USERPROFILE')) .. '/.luahistory'
readline.setup()