summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlr3
1 files changed, 1 insertions, 2 deletions
diff --git a/lr b/lr
index 9158f02..0b5698f 100755
--- a/lr
+++ b/lr
@@ -1,7 +1,6 @@
#!/bin/sh
mdir="$(dirname "$(readlink $0)")"
-lpath="$mdir/?.lua;$LUA_PATH"
case "$(basename $0)" in
ljr) lua=luajit ;;
@@ -16,5 +15,5 @@ esac
# allow overriding with envvar LUA
lua=${LUA:-$lua}
-LUA_PATH="$lpath" rlwrap "$lua" "${mdir}/repl.lua" $@
+rlwrap "$lua" -e 'package.loaded.pprint = dofile("'"${mdir}/pprint.lua"'")' "${mdir}/repl.lua" $@